ICU-1607 add LD_SONAME and rules to generate versioned libraries.
X-SVN-Rev: 7426
This commit is contained in:
parent
05fd196779
commit
cb22fd576f
@ -3,7 +3,7 @@
|
||||
## Copyright (c) 1999-2000, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
##
|
||||
## $Id: mh-irix,v 1.20 2002/01/04 23:48:43 yves-oss Exp $
|
||||
## $Id: mh-irix,v 1.21 2002/01/10 02:41:39 yves-oss Exp $
|
||||
|
||||
## Flags for position independent code
|
||||
SHAREDLIBCFLAGS = -shared
|
||||
@ -29,6 +29,9 @@ SHLIB.cc= $(CXX) -shared $(DEFS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS)
|
||||
LD_RPATH=
|
||||
LD_RPATH_PRE= -Wl,-rpath,
|
||||
|
||||
## Compiler switch to embed a library name
|
||||
LD_SONAME = -Wl,-soname -Wl,$(MIDDLE_SO_TARGET)
|
||||
|
||||
## Shared object suffix
|
||||
SO= so
|
||||
## Non-shared intermediate object suffix
|
||||
@ -61,4 +64,11 @@ STATIC_O = ao
|
||||
| sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
|
||||
[ -s $@ ] || rm -f $@'
|
||||
|
||||
## 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 IRIX-specific setup
|
||||
|
Loading…
Reference in New Issue
Block a user