From: Zach Loafman Date: Wed, 9 Jul 2008 07:05:50 +0000 (-0700) Subject: Make DSO_EXPORTS_CMD regexp more POSIX compliant X-Git-Tag: samba-3.3.0pre1~417 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0acc888ca91a7401c5e54388c58272e263f73069;p=thirdparty%2Fsamba.git Make DSO_EXPORTS_CMD regexp more POSIX compliant The FreeBSD sed command doesn't understand \? without passing -E to turn on extended regexps. This patch changes the DSO_EXPORTS_CMD regexp to a POSIX compliant RE by switching the \+ to a \{1,\} bound and the \? to a \{0,1\} bound. --- diff --git a/source/Makefile.in b/source/Makefile.in index aeff0571320..5dbac10cf8a 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -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@\(.[0-9]\+\)\?$$/@SYMSEXT@/'` +DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's/@SHLIBEXT@\(.[0-9]\{1,\}\)\{0,1\}$$/@SYMSEXT@/'` DSO_EXPORTS=@DSO_EXPORTS@ SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@