ICU-208 versioning on Solaris, all compilers

X-SVN-Rev: 2693
This commit is contained in:
Yves Arrouye 2000-10-16 17:54:39 +00:00
parent 85ab5c8fa0
commit 60abdbc718
2 changed files with 28 additions and 0 deletions

View file

@ -30,6 +30,13 @@ SHLIB.cc= $(CXX) $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -G
LD_RPATH= -R
LD_RPATH_PRE=
## Compiler switch to embed a library name
LD_SONAME = -h $(MIDDLE_SO_TARGET)
## Versioned target for a shared library.
FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION)
MIDDLE_SO_TARGET = $(SO_TARGET)
## Environment variable to set a runtime search path
LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH
@ -82,4 +89,11 @@ LIBUSTDIO= -L$(top_builddir)/extra/ustdio -lustdio
@echo "Generating dependency information for $<"
@$(GEN_DEPS.cc) $< > $@
## Versioned libraries rules
%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
$(RM) $@ && ln -s $< $@
%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
$(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
## End Solaris-specific setup

View file

@ -24,6 +24,13 @@ SHLIB.cc= $(CXX) -xtarget=ultra -xarch=v9 $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFL
LD_RPATH= -R
LD_RPATH_PRE=
## Compiler switch to embed a library name
LD_SONAME = -h $(MIDDLE_SO_TARGET)
## Versioned target for a shared library.
FINAL_SO_TARGET = $(SO_TARGET).$(SO_TARGET_VERSION)
MIDDLE_SO_TARGET = $(SO_TARGET)
## Environment variable to set a runtime search path
LDLIBRARYPATH_ENVVAR = LD_LIBRARY_PATH
@ -76,4 +83,11 @@ LIBUSTDIO= -L$(top_builddir)/extra/ustdio -lustdio
@echo "Generating dependency information for $<"
@$(GEN_DEPS.cc) $< > $@
## Versioned libraries rules
%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
$(RM) $@ && ln -s $< $@
%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
$(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
## End Solaris-specific setup