[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Position independent code
From: |
Andreas Falkenhahn |
Subject: |
Re: [ft] Position independent code |
Date: |
Mon, 12 Mar 2018 18:31:05 +0100 |
On 12.03.2018 at 08:16 Werner LEMBERG wrote:
>> Suppose I want to compile freetype as position independent code
>> because I need to statically link it into a shared object. What's
>> the best way to do this? Should I simply run 'configure' like
>> this...
>> ./configure CFLAGS='-g -O2 -fPIC'
>> ...or is there a better way to do that?
> I think you don't need that. IIRC, libtool (which is used behind the
> scenes to generate the compiler calls in the makefile) automatically
> calls `-fPIC'.
Even when I say ./configure --enabled-shared=no?
--
Best regards,
Andreas Falkenhahn mailto:address@hidden