summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-21 18:38:56 +0000
committerChris Lattner <sabre@nondot.org>2011-02-21 18:38:56 +0000
commitc625d3151c7fbfa167b153e64a5ea1b9841394e3 (patch)
treea3589c44cf4828022869a310f4e14976456d2b20 /Makefile.rules
parentd83318450b96c143e8242e6676eafe55a2539cbc (diff)
downloadllvm-c625d3151c7fbfa167b153e64a5ea1b9841394e3.tar.gz
llvm-c625d3151c7fbfa167b153e64a5ea1b9841394e3.tar.bz2
llvm-c625d3151c7fbfa167b153e64a5ea1b9841394e3.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 363fa9605b..c0a9112c31 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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)