build: add ability to use library files of the form NAME.so.VERSION to create version...
authorMichael Adam <obnox@samba.org>
Sun, 6 Jul 2008 00:26:57 +0000 (02:26 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 7 Jul 2008 18:33:58 +0000 (20:33 +0200)
Michael
(This used to be commit b8d13f8773f61863b71bfc9df468f0018b0db0d1)

source3/Makefile.in

index cbd34afb1c6e5d34a2970e512b188b0939aed922..ca999a01ece32d3905d0e76954b92c118b0fd5a0 100644 (file)
@@ -25,7 +25,7 @@ SHLD=@SHLD@
 LIB_PATH_VAR=@LIB_PATH_VAR@
 
 ## Dynamic shared libraries build settings
-DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@$$/@SYMSEXT@/'`
+DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\+\)\?$$/@SYMSEXT@/'`
 DSO_EXPORTS=@DSO_EXPORTS@
 SONAME_VER=`grep \^$@ $(builddir)/library-versions | cut -d: -f2`
 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@