diff options
author | Eric Christopher <echristo@apple.com> | 2012-03-12 20:58:14 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-03-12 20:58:14 +0000 |
commit | 5084fa040939965c655da0af9239a656d0065eca (patch) | |
tree | 93ef7a230da6079d59078dc6a898126b36778fe3 /Makefile.rules | |
parent | 9eb5f170a219decc4ee07b57b0403d3836a8d946 (diff) |
Use a posix compliant regexp in export file construction.
Patch by John Spencer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 6fd3249fcb..76cec18ff8 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1070,7 +1070,7 @@ ifeq ($(HAVE_LINK_VERSION_SCRIPT),1) NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).map $(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir $(Verb) echo "{" > $@ - $(Verb) grep -q "\<" $< && echo " global:" >> $@ || : + $(Verb) grep -q '[[:alnum:]_]' $< && echo " global:" >> $@ || : $(Verb) sed -e 's/$$/;/' -e 's/^/ /' < $< >> $@ ifneq ($(HOST_OS),OpenBSD) $(Verb) echo " local: *;" >> $@ |