aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-06-23 20:46:48 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-06-23 20:46:48 +0000
commitd500a27c7d30d5c9942f00430f0e47c3e1e464c5 (patch)
treee136bb9eca617d20f273f938a30e9138976cfea6 /Makefile.rules
parent6cc318c8fe47914da175886586d22ad377644e99 (diff)
downloadexternal_llvm-d500a27c7d30d5c9942f00430f0e47c3e1e464c5.zip
external_llvm-d500a27c7d30d5c9942f00430f0e47c3e1e464c5.tar.gz
external_llvm-d500a27c7d30d5c9942f00430f0e47c3e1e464c5.tar.bz2
Make llvmc work again.
Chris recently broke llvmc with his Makefile changes (r75379). That patch made the global change .o -> .a, which caused built-in llvmc plugins to stop working since plugin initialization in llvmc is based on static variables not referenced from the main executable. This patch implements auto-generated forced references to the plugin libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9325ca4..c706bed 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -198,6 +198,7 @@ install-bytecode:: install-bytecode-local
ifdef LLVMC_PLUGIN
LIBRARYNAME := $(patsubst %,plugin_llvmc_%,$(LLVMC_PLUGIN))
+CPP.Flags += -DLLVMC_PLUGIN_NAME=$(LLVMC_PLUGIN)
REQUIRES_EH := 1
# Build a dynamic library if the user runs `make` directly from the plugin