Skip to content
Browse files

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
  • Loading branch information...
1 parent 9eb5f17 commit 5084fa040939965c655da0af9239a656d0065eca Eric Christopher committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile.rules
View
2 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: *;" >> $@

0 comments on commit 5084fa0

Please sign in to comment.
Something went wrong with that request. Please try again.