s3:Makefile: make DSO_EXPORTS_CMD more portable (#8531)
authorBjörn Jacke <bj@sernet.de>
Thu, 20 Oct 2011 19:39:38 +0000 (21:39 +0200)
committerBjoern Jacke <bj@sernet.de>
Thu, 20 Oct 2011 21:15:05 +0000 (23:15 +0200)
It sems like every not completely trivial sed expression should be tested with
Solaris' sed.  Its regexp engine is way more limited than the one of GNU
sed. Thanks to Michael Pelletier for finding this! This fixes bug #8531

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Thu Oct 20 23:15:05 CEST 2011 on sn-devel-104

source3/Makefile.in

index 7872484ef04b0d50ed7399a2a249be9ad2eedfff..6bf03d34d4b7ed71c1a535bc9369447dd8461bfa 100644 (file)
@@ -64,7 +64,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@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'`
+DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
 DSO_EXPORTS=@DSO_EXPORTS@
 SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@