]> granicus.if.org Git - clang/commitdiff
Add an export map for clang on Linux.
authorOwen Anderson <resistor@mac.com>
Thu, 26 Feb 2009 06:29:54 +0000 (06:29 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 26 Feb 2009 06:29:54 +0000 (06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65504 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/Driver.map [new file with mode: 0644]
Driver/Makefile

diff --git a/Driver/Driver.map b/Driver/Driver.map
new file mode 100644 (file)
index 0000000..43e310e
--- /dev/null
@@ -0,0 +1,4 @@
+{
+       global: main;
+       local: *;
+};
index d4b939052c995bd0d8d4cb7950b21433ecf06223..51943d5f27f9e8d0216f1c1b30971bc20dbcebfd 100644 (file)
@@ -14,6 +14,10 @@ ifeq ($(OS),Darwin)
 LD.Flags += -Wl,-exported_symbol -Wl,_main
 endif
 
+ifeq ($(OS),Linux)
+LD.Flags += -Wl,--version-script=Driver.map
+endif
+
 LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
 USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a   \
            clangDriver.a clangAST.a clangParse.a clangLex.a            \