From: Reuben Thomas Date: Wed, 29 Oct 2014 18:50:01 +0000 (+0000) Subject: libtool: preliminary support for tcc on linux*. X-Git-Tag: v2.4.4~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdf127ca58af8c4d052249a39bbb8a921360211a;p=thirdparty%2Flibtool.git libtool: preliminary support for tcc on linux*. * m4/libtool.m4 (_LT_LINKER_SHLIBS) : Set archive_cmds and ld_shlibs appropriately when using tcc. * NEWS: Update. Signed-off-by: Gary V. Vaughan --- diff --git a/NEWS b/NEWS index 635aef4d8..a53526ff9 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,14 @@ NEWS - list of user-visible changes between releases of GNU Libtool - Installation of 'libtoolize' once again obeys '--program-prefix', '--program-suffix' and '--program-transform-name' configure options. +** Changes in supported systems or compilers: + + - Preliminary support for tcc on linux*. Although it already worked + sometimes in previous releases, making sure to set LD correctly now + avoids mis-matching GNU ld with tcc: + + ./configure CC=tcc LD=tcc + * Noteworthy changes in release 2.4.3 (2014-10-27) [stable] diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 068f0d8be..b3c061790 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -5515,6 +5515,16 @@ _LT_EOF _LT_TAGVAR(link_all_deplibs, $1)=yes ;; + linux*) + case $cc_basename in + tcc*) + # Fabrice Bellard et al's Tiny C Compiler + _LT_TAGVAR(ld_shlibs, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out