ICU-1632 from Timothy Wood:

OK, here are the final bits for Darwin.  This changes the install name
of the dylibs and the filename for the 'middle' link.  With this set up
I have the following link structure in the lib directory:

528 -rw-r--r--  1 bungi  unknown  267748 Jan 31 00:55 libicule.20.0.dylib
   8 lrwxrwxr-x  1 bungi  unknown      19 Jan 31 00:55
libicule.20.dylib@ -> libicule.20.0.dylib
   8 lrwxrwxr-x  1 bungi  unknown      19 Jan 31 00:55 libicule.dylib@ ->
libicule.20.0.dylib

   Thus, if you do '-licule' you'll get the most current major/minor
version.  If you do '-licule.20' you'll get the most current minor
version for major version 20.

X-SVN-Rev: 7545
This commit is contained in:
Yves Arrouye 2002-01-31 17:03:18 +00:00
parent a42dd565b8
commit f7a2025047

View File

@ -4,7 +4,7 @@
## Copyright (c) 1999-2002, International Business Machines Corporation and
## others. All Rights Reserved.
##
## $Id: mh-darwin,v 1.21 2002/01/30 02:10:27 yves-oss Exp $
## $Id: mh-darwin,v 1.22 2002/01/31 17:03:18 yves-oss Exp $
## Flags for position independent code
SHAREDLIBCFLAGS = -dynamic
@ -20,8 +20,8 @@ COMPILE.c= $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -fno-common -c
COMPILE.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) -fno-common -c
## Commands to make a shared library
SHLIB.c= $(CC) -dynamiclib -dynamic $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -install_name $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
SHLIB.cc= $(CXX) -dynamiclib -dynamic $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -install_name $(DESTDIR)$(libdir)/$(FINAL_SO_TARGET)
SHLIB.c= $(CC) -dynamiclib -dynamic $(DEFS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -install_name $(DESTDIR)$(libdir)/$(MIDDLE_SO_TARGET)
SHLIB.cc= $(CXX) -dynamiclib -dynamic $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -install_name $(DESTDIR)$(libdir)/$(MIDDLE_SO_TARGET)
## Compiler switch to embed a runtime search path
LD_RPATH=
@ -37,7 +37,7 @@ STATIC_O = ao
## Versioned target for a shared library.
FINAL_SO_TARGET = $(basename $(SO_TARGET)).$(SO_TARGET_VERSION).$(SO)
MIDDLE_SO_TARGET = $(basename $(SO_TARGET)).$(SO)
MIDDLE_SO_TARGET = $(basename $(SO_TARGET)).$(SO_TARGET_VERSION_MAJOR).$(SO)
## Compilation rules
%.$(STATIC_O): $(srcdir)/%.c