From: Björn Jacke Date: Thu, 20 Oct 2011 19:39:38 +0000 (+0200) Subject: s3:Makefile: make DSO_EXPORTS_CMD more portable (#8531) X-Git-Url: http://git.samba.org/?p=rusty%2Fsamba.git;a=commitdiff_plain;h=37be1df3d7534c2cc8e1e25614164c2178372b94 s3:Makefile: make DSO_EXPORTS_CMD more portable (#8531) 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 Autobuild-Date: Thu Oct 20 23:15:05 CEST 2011 on sn-devel-104 --- diff --git a/source3/Makefile.in b/source3/Makefile.in index 7872484ef04..6bf03d34d4b 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -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 $@