Make DSO_EXPORTS_CMD regexp more POSIX compliant
authorZach Loafman <zachary.loafman@isilon.com>
Wed, 9 Jul 2008 07:05:50 +0000 (00:05 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 18 Aug 2008 13:05:31 +0000 (15:05 +0200)
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.
(cherry picked from commit 0acc888ca91a7401c5e54388c58272e263f73069)
(cherry picked from commit e233cdeb16e635260197e30528eef20d29678052)

source/Makefile.in

index f85185c8a6f3963e549f29962058cd13b6b8a61b..5ed8aaefbe4f22642d3da7801c4a0b2430898611 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@\(.[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 $@