diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-30 17:48:10 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-30 17:48:10 +0000 |
commit | 8759836c7333e11d20501176914fe151aa39f2fb (patch) | |
tree | adfa6d442f0557fe79b4eb9707c0333d7d6025d1 /libtool.m4 | |
parent | fb16c776b6f12e2ea7d165031dff06431f44275a (diff) | |
download | gcc-8759836c7333e11d20501176914fe151aa39f2fb.tar.gz |
2007-05-30 H.J. Lu <hongjiu.lu@intel.com>
PR libjava/32098
* libtool.m4 (_LT_LANG_GCJ_CONFIG): Use gcc to test gcj features.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libtool.m4')
-rw-r--r-- | libtool.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libtool.m4 b/libtool.m4 index 46d59635dfa..e4986cadf79 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -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 |