[42620] trunk/dports/databases/mysql5-devel/Portfile
Joshua Root
jmr at macports.org
Fri Nov 28 08:50:09 PST 2008
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
More information about the macports-dev
mailing list