libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: Problem on rs6000-ibm-aix4.3.2.0 (Fortran) -DPIC


From: Kevin Ryde
Subject: Re: [PATCH] Re: Problem on rs6000-ibm-aix4.3.2.0 (Fortran) -DPIC
Date: Fri, 17 Jan 2003 10:37:06 +1000
User-agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.1 (i386-debian-linux-gnu)

Robert Boehne <address@hidden> writes:
>
> I would also like
> to ask anyone who does depend on this to let us know when/where/why &
> how
> so we can add a section to the documentation on how to modify
> code to not need -DPIC.

In GMP we have assembler code (mainly i386) which understands it has
to be PIC to go in a shared library.

    libtool --mode=compile --tag=CC m4-ccas $CC $CFLAGS ... foo.asm

m4-ccas is a script which passes foo.asm through m4 then assembles.
It looks for -DPIC inserted into the options by libtool and passes
that through to m4 to let foo.asm choose PIC or non-PIC instructions.

The compiler is only involved for assembling "tmp-foo.s", not
preprocessing, so what it defines for -fPIC etc doesn't help, we
really want a direct indication from libtool.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]