Ticket #5890 (new enhancement)

SVN Diffs for #5890

 

Opened 1 year ago

Last modified 4 months ago

Darwin/MacOSX shared library fix

Reported by: buildsmart@... Assigned to: pedberg
Priority: assess Milestone: UNSCH
Component: config_build Version: 3.8
Keywords: Cc: deborah, srl, grhoten
Load: Xref:
Java Version: Operating System: Mac OS X / Darwin
Project (C/J): all Weeks: 0.1
Review:

Description

This patch fixes the shared library runtime paths for Darwin/Mac OS X so binding doesn't require DYLIB path modification which is far beyond the abilites of most users.

--- mh-darwin.orig       2007-08-29 04:26:29.000000000 -0400
+++ mh-darwin       2007-08-29 04:27:00.000000000 -0400
@@ -25,7 +25,7 @@
 SHLIB.cc=	$(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS)
 
 ## Compiler switches to embed a library name and version information
-LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(notdir $(MIDDLE_SO_TARGET))
+LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO_TARGET))
 
 ## Compiler switch to embed a runtime search path
 LD_RPATH=

Attachments

Change History

09/26/07 15:39:00 changed by markus

  • xref changed.
  • cc changed from buildsmart@daleenterprise.com to buildsmart@daleenterprise.com, deborah, srl.
  • component changed from unknown to config_build.
  • owner changed from somebody to grhoten.
  • weeks set to 0.1.
  • revw changed.

09/26/07 17:12:06 changed by deborah

Won't this have the effect of disabling DYLD_LIBRARY_PATH?

I'm a little concerned about the effect this will have on the normal path, which is to build for /usr/lib/. If that still works, then this is probably OK.

09/26/07 17:31:07 changed by grhoten

  • cc changed from buildsmart@daleenterprise.com, deborah, srl to deborah, srl, grhoten.
  • owner changed from grhoten to deborah.

Deborah is probably right. Unfortunately, I don't know what the best solution is here. As I recall, some other users wanted the current implementation so that they could specify the install name at the installation time with their product.

07/10/08 11:32:34 changed by yoshito

  • priority changed from major to assess.

07/10/08 14:52:25 changed by deborah

  • owner changed from deborah to pedberg.

Add/Change #5890 (Darwin/MacOSX shared library fix)




Anti spam check: