On Fri, Nov 28, 2008 at 11:50 AM, Joshua Root <[EMAIL PROTECTED]> wrote: > Big O wrote: >> On Fri, Nov 28, 2008 at 4:32 AM, Ryan Schmidt <[EMAIL PROTECTED]> 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. _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
