From: Owen Anderson Date: Thu, 26 Feb 2009 06:29:54 +0000 (+0000) Subject: Add an export map for clang on Linux. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa95c3bd0a1ade2c84813ba6d92403f4e9183198;p=clang Add an export map for clang on Linux. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65504 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/Driver.map b/Driver/Driver.map new file mode 100644 index 0000000000..43e310e053 --- /dev/null +++ b/Driver/Driver.map @@ -0,0 +1,4 @@ +{ + global: main; + local: *; +}; diff --git a/Driver/Makefile b/Driver/Makefile index d4b939052c..51943d5f27 100644 --- a/Driver/Makefile +++ b/Driver/Makefile @@ -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 \