Re: Re: how to force object-files into the build-system?

From: Date: Sat, 17 Jun 2000 10:36:36 +0000
Subject: Re: Re: how to force object-files into the build-system?
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-21603@lists.php.net to get a copy of this message
On Sat, Jun 17, 2000 at 11:28:13AM +0200, Sascha Schumann wrote: > On Fri, 16 Jun 2000, David Shafer wrote: > > > > By default, the C frontend will tell the link editor to link > > > against libc. If we now go and add a -lc_r, this will result > > > in problems. On AIX, `gcc -mthreads' and xlc_r/cc_r will do > > > the right thing (linking only against reentrant libraries). > > > > So if a person is trying to enable the oci8 extensions on AIX using the IBM > > compiler, they should (in fact _must_, according to the Oracle > > documentation) use cc_r/xlc_r. Is there a way 'configure' could > > intelligently determine that? > > If it is possibly, it will be done. i've been running the oracle stuff on aix for quite a while (using gcc). to link i need gcc -nostdlibs -lgcc `cat $ORACLE_HOME/libs/sysliblist' i always had to fiddle around with the makefiles myself:( question comes down to how do i get the stuff from sysliblist into our build-system. sascha, i know you don't like it -but- it seems to be the only way to let oracle decide which additional libraries they want on a specific platform. +plus+ we do have to add "-nostdlibs -lgcc" if we're using gcc. rigt now i have (my local tree) ext/oci8/config.m4 .. if test -f "$OCI8_DIR/lib/sysliblist"; then OCI8_SYSLIB="cat $OCI8_DIR/lib/sysliblist" elif test -f "$OCI8_DIR/rdbms/lib/sysliblist"; then OCI8_SYSLIB="cat $OCI8_DIR/rdbms/lib/sysliblist" fi if test "$ext_shared" = "yes"; then OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD $OCI8_SYSLIB" else PHP_LIBS="$PHP_LIBS $OCI8_SYSLIB" fi ... if test "$CC" = "gcc" -a "uname -sv" = "AIX 4"; then PHP_LDFLAGS="$PHP_LDFLAGS -nostdlib" PHP_LIBS="$PHP_LIBS -lgcc" fi .. am i way off-track? i _will_ fiddle with this a bit more (i only have AIX 4.2 with gcc for testing) my main problem right now is how to stuff into the final link-line. tc > > - Sascha > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.dev (#21603) next »