From: <pat...@us...> - 2007-07-07 00:58:57
|
Revision: 613 http://svn.sourceforge.net/xml-cppdom/?rev=613&view=rev Author: patrickh Date: 2007-07-06 17:58:57 -0700 (Fri, 06 Jul 2007) Log Message: ----------- Generate a usable shared library on Mac OS X. For some reason, the install name for the shared library was junk. Modified Paths: -------------- trunk/cppdom/SConscript Modified: trunk/cppdom/SConscript =================================================================== --- trunk/cppdom/SConscript 2007-06-28 22:05:08 UTC (rev 612) +++ trunk/cppdom/SConscript 2007-07-07 00:58:57 UTC (rev 613) @@ -45,6 +45,11 @@ 'mt.exe -manifest ${TARGET}.manifest -outputresource:$TARGET;2'] cppdom_shared_lib_env = cppdom_lib_env.Copy() cppdom_shared_lib_env.AppendUnique(CPPDEFINES = ["CPPDOM_EXPORTS"]) + if GetPlatform() == 'darwin': + cppdom_shared_lib_env.Append( + LINKFLAGS = ['-install_name', 'lib%s.dylib' % cppdom_shared_libname] + ) + cppdom_lib = cppdom_shared_lib_env.SharedLibrary(cppdom_shared_libname, sources, SHLINKCOM = shlinkcom) cppdom_shared_lib_env.Install(inst_paths['lib'], cppdom_lib) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |