* PATCH: PR libjava/32098: New libtool doesn't support libjava
@ 2007-05-27 17:34 H. J. Lu
0 siblings, 0 replies; only message in thread
From: H. J. Lu @ 2007-05-27 17:34 UTC (permalink / raw)
To: gcc-patches; +Cc: java-patches
New libtool calls gcj to test gcj features. However, gcj isn't
fully functional when building libjava since ecj1 isn't available.
As the result, libtool created for libjava isn't really correct.
This patch uses gcc to test gcj features like PIC and "-c -o".
H.J.
----
2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
PR libjava/32098
* libtool.m4: Use gcc to test gcj features.
--- libtool.m4.gcj 2007-05-24 09:41:43.000000000 -0700
+++ libtool.m4 2007-05-27 09:07:11.000000000 -0700
@@ -6757,9 +6757,14 @@ _LT_TAG_COMPILER
_LT_COMPILER_BOILERPLATE
_LT_LINKER_BOILERPLATE
+# We can't call gcj to test gcj features when building libjava in gcc
+# since gcj may depend on ecj1 which may not be available yet. We use
+# gcc to test gcj features.
+ac_ext=c
+lt_simple_compile_test_code="int some_variable = 0;"
+lt_simple_link_test_code='int main(){return(0);}'
+
# Allow CC to be a program name with arguments.
-lt_save_CC="$CC"
-CC=${GCJ-"gcj"}
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
_LT_CC_BASENAME([$compiler])
@@ -6786,7 +6791,6 @@ if test -n "$compiler"; then
fi
AC_LANG_RESTORE
-CC="$lt_save_CC"
])# _LT_LANG_GCJ_CONFIG
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-27 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-27 17:34 PATCH: PR libjava/32098: New libtool doesn't support libjava H. J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).