Better OpenBSD support, patch by Amit Kulkarni. I have no way to test

that this doesn't break gold, but it seems reasonable to me.

llvm-svn: 126135
This commit is contained in:
Chris Lattner 2011-02-21 18:38:56 +00:00
parent 786e04cda5
commit 22b7495ec8
1 changed files with 2 additions and 0 deletions

View File

@ -973,7 +973,9 @@ $(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir
$(Verb) echo "{" > $@
$(Verb) grep -q "\<" $< && echo " global:" >> $@ || :
$(Verb) sed -e 's/$$/;/' -e 's/^/ /' < $< >> $@
ifneq ($(HOST_OS),OpenBSD)
$(Verb) echo " local: *;" >> $@
endif
$(Verb) echo "};" >> $@
clean-local::
-$(Verb) $(RM) -f $(NativeExportsFile)