From 22b7495ec86da81f355c4cc7c6cc6124d9793806 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Feb 2011 18:38:56 +0000 Subject: [PATCH] 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 --- llvm/Makefile.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules index 363fa9605b5a..c0a9112c31be 100644 --- a/llvm/Makefile.rules +++ b/llvm/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) -- GitLab