This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: libtool --tag=CXX
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: libtool --tag=CXX
- From: Tom Tromey <tromey at redhat dot com>
- Date: 31 Jan 2001 10:38:46 -0700
- Reply-To: tromey at redhat dot com
Following the discussion on the main list, I'm checking this in.
2001-01-31 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (LTCXXCOMPILE): New macro.
Tom
Index: Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.128
diff -u -r1.128 Makefile.am
--- Makefile.am 2001/01/24 17:43:25 1.128
+++ Makefile.am 2001/01/31 17:10:51
@@ -79,6 +79,12 @@
GCJLINK = $(LIBTOOL) --mode=link $(GCJ) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
LIBLINK = $(LIBTOOL) --mode=link $(CC) -L$(here) $(JC1FLAGS) $(LDFLAGS) -o $@
+## We define this because otherwise libtool can be run with different
+## values of `CXX' and will then get confused and fail to work. So,
+## we use --tag explicitly. Someday automake will be changed to do
+## this automatically.
+LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+
JAVAC = $(GCJ_WITH_FLAGS) -C
EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@