From: Vincent Lefevre Date: Wed, 9 Oct 2013 21:19:07 +0000 (-0700) Subject: libtool: Fix $wl setting for tcc on GNU systems X-Git-Tag: v2.4.2.418~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdb4d6a3db65e06c01299aa5ad726587311d3f0c;p=thirdparty%2Flibtool.git libtool: Fix $wl setting for tcc on GNU systems (This addresses http://bugs.debian.org/663945. See there for more-detailed discussion.) tcc gained support for "-Wl,-rpath -Wl," in its commit 7fb0482a ("Support linker options passed in several -Wl param", 2012-03-14) but libtool doesn't know to use it. Teach it. Without this change, running "make check" on MPFR when it has been built with tcc and shared libraries doesn't work because libtool generates a -rpath option, which tcc doesn't support. Copyright-paperwork-exempt: Yes --- diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 262922bee..fa192d91f 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -4481,6 +4481,12 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project)