Wireshark-commits: [Wireshark-commits] rev 20301: /trunk/ /trunk/: configure.in
Date: Thu, 04 Jan 2007 11:50:42 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=20301

User: guy
Date: 2007/01/04 11:50 AM

Log:
 Add -Wl,-single_module to the linker flags in Darwin.  The page at
 
 	http://developer.apple.com/releasenotes/DeveloperTools/RN-dyld/index.html
 
 says
 
 	The static linker ld(1) supports building dylibs as either
 	-multi_module or -single_module.  Conceptually, a multi-module
 	dylib is like a group of smaller dylibs - one per source file. 
 	The extra meta-data in a multi-module dylib allowed (pre-10.4)
 	dyld to delay binding and running initializers on the individual
 	modules.  In Mac OS X 10.4 dyld ignores all multi-module
 	meta-data and completely binds and runs all initializers the
 	same as if it were built single-module.  In general, building
 	dylibs -single_module is preferred.  The one case where
 	multi-module is still useful is it allows internal functions of
 	a dylib to be interposable.  For instance, libSystem.dylib is
 	built multi_module so that malloc() can be overridden and all
 	uses of malloc in libSystem (e.g.  strdup) would be redirected
 	to use the overridden version.
 
 and we don't need the interposability for our dylibs, and Andreas Fink
 indicates that it's necessary for the packaged Wireshark builds he's
 doing.

Directory: /trunk/
  Changes    Path            Action
  +14 -8     configure.in    Modified