summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Transforms/Hello/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/lib/Transforms/Hello/Makefile')
-rw-r--r--contrib/llvm/lib/Transforms/Hello/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Transforms/Hello/Makefile b/contrib/llvm/lib/Transforms/Hello/Makefile
index c5e75d4..f1e3148 100644
--- a/contrib/llvm/lib/Transforms/Hello/Makefile
+++ b/contrib/llvm/lib/Transforms/Hello/Makefile
@@ -12,5 +12,13 @@ LIBRARYNAME = LLVMHello
LOADABLE_MODULE = 1
USEDLIBS =
+# If we don't need RTTI or EH, there's no reason to export anything
+# from the hello plugin.
+ifneq ($(REQUIRES_RTTI), 1)
+ifneq ($(REQUIRES_EH), 1)
+EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/Hello.exports
+endif
+endif
+
include $(LEVEL)/Makefile.common
OpenPOWER on IntegriCloud