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

From: Date: Fri, 16 Jun 2000 18:12:51 +0000
Subject: Re: how to force object-files into the build-system?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21549@lists.php.net to get a copy of this message
On Fri, 16 Jun 2000 thies@digicol.de wrote: > > sascha, > oracle has a file on every platform called sysliblist usually > this files contains lokks like: > > 8.1.6.1 (linux): > ---------------- > -ldl -lm -lpthread > > in config.m4 in ext/oci8.c i separate the libs and add them > with the "right" macros. on AIX the situation is different > > 8.0.6 (AIX) > ----------- > /lib/crt0_r.o -lsvld -lc_r -lpthreads -lodm -lm > > for obvious reasons i cannot treat the /lib/crt0_r.o like a > normal library > > > what would be the "right thing" to do? > > on AIX (when using gcc) i also need to add "-nostdlibs -lgcc" > to the link line. > > any suggestions? Well, nuking the Oracle HQ would be a first step. Seriously, the AIX line above simply means "enable pthreads." You can do this selectively in your config.m4: case "$host_alias" in *aix*) dnl this can break at any time. if test "$enable_experimental_zts" != "yes"; then PTHREADS_ASSIGN_VARS PTHREADS_FLAGS fi ;; esac You should not add libc_r or libpthreads. The above will work with the AIX C compiler and gcc on AIX. It might be necessary to use xlc_r/cc_r instead of xlc/cc. - Sascha

« previous php.dev (#21549) next »