site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.19 (X11/20090105) Jack Howarth wrote:
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?
ranlib -c libfreeglut.a will include common symbols in the archive table of contents. Peter -- Peter O'Gorman http://pogma.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com