From 10695a219fe0de117a72a3408ee5f1f12409fd56 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Thu, 31 Jul 2014 15:32:13 +0100 Subject: [PATCH] libtool.m4: add support for tcc as linker --- m4/libtool.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 320d8b3..91b460e 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 -- 1.9.1