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
$(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)