]> granicus.if.org Git - icu/commitdiff
ICU-5890 implement rpath3.patch from #5890
authorSteven R. Loomis <srl@icu-project.org>
Wed, 6 Jul 2011 17:08:39 +0000 (17:08 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Wed, 6 Jul 2011 17:08:39 +0000 (17:08 +0000)
X-SVN-Rev: 30283

icu4c/source/config/mh-darwin

index c2dc398424568d9cd926c17aabe58bdfc3cff35c..d8e6d5ba0e558831fb0cf97e474886557d7edfe9 100644 (file)
@@ -1,7 +1,7 @@
 ## -*-makefile-*-
 ## Darwin-specific setup (Darwin is the Mac OS X developer preview, successor
 ## to Rhapsody, aka Mac OS X Server)
-## Copyright (c) 1999-2009 International Business Machines Corporation and
+## Copyright (c) 1999-2011 International Business Machines Corporation and
 ## others. All Rights Reserved.
 
 ## Flags for position independent code
@@ -25,11 +25,15 @@ SHLIB.c=    $(CC) -dynamiclib -dynamic $(CFLAGS) $(LDFLAGS) $(LD_SOOPTIONS)
 SHLIB.cc=      $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS)
 
 ## Compiler switches to embed a library name and version information
+ifeq ($(ENABLE_RPATH),YES)
+LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO_TARGET))
+else
 LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(notdir $(MIDDLE_SO_TARGET))
+endif
 
 ## Compiler switch to embed a runtime search path
 LD_RPATH=
-LD_RPATH_PRE=  
+LD_RPATH_PRE= -Wl,-rpath,
 
 ## Environment variable to set a runtime search path
 LDLIBRARYPATH_ENVVAR = DYLD_LIBRARY_PATH