[Bug testsuite/42843] --enable-build-with-cxx plugin tests fail
howarth at nitro dot med dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sun Jul 11 02:36:00 GMT 2010
------- Comment #8 from howarth at nitro dot med dot uc dot edu 2010-07-11 02:36 -------
Perhaps we just need something like...
Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in (revision 162051)
+++ gcc/Makefile.in (working copy)
@@ -330,12 +330,15 @@
LTO_BINARY_READER = @LTO_BINARY_READER@
LTO_USE_LIBELF = @LTO_USE_LIBELF@
-# Compiler needed for plugin support
-PLUGINCC = $(COMPILER)
+# Compiler and flags needed for plugin support
+ifneq ($(ENABLE_BUILD_WITH_CXX),yes)
+PLUGINCC = $(CC)
+PLUGINCFLAGS = $(CFLAGS)
+else
+PLUGINCC = $(CXX)
+PLUGINCFLAGS = $(CXXFLAGS)
+endif
-# Flags needed for plugin support
-PLUGINCFLAGS = $(COMPILER_FLAGS)
-
# Libs and linker options needed for plugin support
PLUGINLIBS = @pluginlibs@
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42843
More information about the Gcc-bugs
mailing list