Better OpenBSD support, patch by Amit Kulkarni. I have no way to test
authorChris Lattner <sabre@nondot.org>
Mon, 21 Feb 2011 18:38:56 +0000 (18:38 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Feb 2011 18:38:56 +0000 (18:38 +0000)
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

Makefile.rules

index 363fa9605b5a8c253c8ffff93008ec4a2967bdfd..c0a9112c31beeac006ada98a80d0b97cdedb959d 100644 (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)