Use an export file. Plugins must export llvm::Registry symbols.

Also, don't link in all the clang libraries statically.

llvm-svn: 109436
This commit is contained in:
Dan Gohman 2010-07-26 21:12:10 +00:00
parent 9306a8ec1b
commit c0539d2eb6
2 changed files with 9 additions and 3 deletions

View File

@ -10,10 +10,15 @@
CLANG_LEVEL := ../..
LIBRARYNAME = PrintFunctionNames
# If we don't need RTTI or EH, there's no reason to export anything
# from the plugin.
ifneq ($(REQUIRES_RTTI), 1)
ifneq ($(REQUIRES_EH), 1)
EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/PrintFunctionNames.exports
endif
endif
LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
USEDLIBS = clangIndex.a clangFrontend.a clangDriver.a clangSema.a \
clangAnalysis.a clangAST.a clangParse.a clangLex.a clangBasic.a
include $(CLANG_LEVEL)/Makefile

View File

@ -0,0 +1 @@
_ZN4llvm8Registry*