generating .pic_o using --pic-reg

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jan 22 23:32:01 AEDT 1998


On 20-Jan-1998, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> When building .pic_o files, mmake passes mgnuc "-fpic -DPIC".
> "--pic-reg" would probably be better (single point of control and
> all that). This is not a big deal.

mmake passes $(CFLAGS_FOR_PIC), which is set to @CFLAGS_FOR_PIC@,
which is set by configure to `-fpic -DPIC_REG' or whatever is
appropriate for the platform in question.  On some platforms
it is set to nothing, since `-fpic' is the default (on those
platforms -DPIC_REG does nothing).

Passing only "--pic-reg" would be wrong, because "--pic-reg"
is equivalent to only to "-DPIC"; it does not include "-fpic".

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list