Re: how to force object-files into the build-system?
| From: | thies at digicol dot de | Date: | Fri, 16 Jun 2000 18:53:13 +0000 |
| Subject: | 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-21551@lists.php.net to get a copy of this message | ||
On Fri, Jun 16, 2000 at 08:12:51PM +0200, Sascha Schumann wrote:
> 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.
it does work with gcc as well. (you need to add -nostdlibs
-lgcc)
the real question still is how do i force this sysliblist
file into our build-system?
tc
>
> - Sascha
--
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