[42620] trunk/dports/databases/mysql5-devel/Portfile
Big O
illogical1 at gmail.com
Fri Nov 28 09:48:31 PST 2008
On Fri, Nov 28, 2008 at 11:50 AM, Joshua Root <jmr at macports.org> wrote:
> Big O wrote:
>> On Fri, Nov 28, 2008 at 4:32 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
>>> How did you know to use the --with-pic option, and what is the symptom of
>>> not using it?
>> Discussion of this took place around september on the amarok-devel
>> mailing list. here's an excerpt
>> "By the way, forgot to mention that the "-fPIC or not -fPIC" debate is
>> irrelevant. Mysql's configure script has a --with-pic flag, so
>> packaging a PIC-enabled libmysqld is not screwing with the package
>> everyone uses, but adding a flexibility, suggested by mysql itself. On
>> the other hand, this flag is borked and does nothing for libmysqld,
>> but upstream agreed that it's their fault (see relevant mysql bug), so
>> it's package maintainers' responsibility to fix it downstream."
>> For any code going into a shared library -fPIC is required. Basically
>> libmysqld.a (static lib) is being linked to libamarok-sqlcollection.so
>> (dynamic lib) and that's why we need -fPIC when creating libmysqld.a.
>
> The gcc man page says, "-fPIC is the default on Darwin and Mac OS X."
> You have to use -mdynamic-no-pic if you don't want it to produce PIC.
>
> - Josh
>
I think this is referring to shared libs. We want static libs with fPIC.
--
All your gmail are belong to us.
More information about the macports-dev
mailing list