]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: preliminary support for tcc on linux*.
authorReuben Thomas <rrt@sc3d.org>
Wed, 29 Oct 2014 18:50:01 +0000 (18:50 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 29 Oct 2014 18:55:35 +0000 (18:55 +0000)
* m4/libtool.m4 (_LT_LINKER_SHLIBS) <linux*>: Set archive_cmds and
ld_shlibs appropriately when using tcc.
* NEWS: Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
NEWS
m4/libtool.m4

diff --git a/NEWS b/NEWS
index 635aef4d89720b81c0189bc07bd37a9ada37ac5b..a53526ff9128a870caa30a978af0c5292a130693 100644 (file)
--- 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]
 
index 068f0d8be0408374264266bf0a646c85ce140cc0..b3c0617901fce852d3a8e5399bcb460855477844 100644 (file)
@@ -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