mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Freebsd's sed doesn't support \< in regexps, and GNU sed doesn't
support [[:<:]]. Use beginning-of-line and end-of-line anchors instead. llvm-svn: 105277
This commit is contained in:
parent
62f73090c7
commit
0aec2d5e72
@ -986,7 +986,7 @@ ifeq ($(HOST_OS),Darwin)
|
||||
# Darwin convention prefixes symbols with underscores.
|
||||
NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).sed
|
||||
$(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir
|
||||
$(Verb) sed -e 's/[[:<:]]/_/' < $< > $@
|
||||
$(Verb) sed -e 's/^/_/' < $< > $@
|
||||
clean-local::
|
||||
-$(Verb) $(RM) -f $(NativeExportsFile)
|
||||
else
|
||||
@ -996,7 +996,7 @@ NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).map
|
||||
$(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir
|
||||
$(Verb) echo "{" > $@
|
||||
$(Verb) grep -q "\<" $< && echo " global:" >> $@ || :
|
||||
$(Verb) sed -e 's/\>/;/' -e 's/^\</ /' < $< >> $@
|
||||
$(Verb) sed -e 's/$$/;/' -e 's/^/ /' < $< >> $@
|
||||
$(Verb) echo " local: *;" >> $@
|
||||
$(Verb) echo "};" >> $@
|
||||
clean-local::
|
||||
|
Loading…
Reference in New Issue
Block a user