From: Ralf Wildenhues Date: Mon, 28 Mar 2005 09:32:59 +0000 (+0000) Subject: * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): X-Git-Tag: release-2-1b~697 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8637ab4420cab4cb0292417652f5b0e4c3945c72;p=thirdparty%2Flibtool.git * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): Set $cc_basename. --- diff --git a/ChangeLog b/ChangeLog index f6b4f3759..ba126252c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-03-28 Ralf Wildenhues + * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): + Set $cc_basename. + * HACKING: echo vs $ECHO. 2005-03-28 Ralf Wildenhues (tiny change) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index be8f68078..cb13e9a62 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -5878,6 +5878,8 @@ lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC +cc_basename=`$ECHO "X$compiler" \ + | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'` # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no @@ -5934,6 +5936,8 @@ lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC +cc_basename=`$ECHO "X$compiler" \ + | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'` _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then