common symbols in static libs on darwin?
common symbols in static libs on darwin?
- Subject: common symbols in static libs on darwin?
- From: Jack Howarth <email@hidden>
- Date: Thu, 26 Mar 2009 10:08:39 -0400
I got a report of problems linking the libfreeglut.a
static lib from my fink packaging of freeglut 2.4.0. The
problem seems to arise from the fact that the object files
for the static lib of libfreeglut are all compiled without
-fno-common. This causes unresolved symbols shared libs
that use this static lib are loaded. Are there any
recommendations from Apple on best practices for static
libs regarding this? I can find information suggesting
that -fno-common must be used for shared libs but not the
same for static libs. However since any static lib
could be linked into a shared lib, shouldn't the static
libs on darwin be built with -fno-common by default?
Is there any technical reason not to do this?
Jack
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden