diff options
author | Reuben Thomas <rrt@sc3d.org> | 2014-10-29 18:50:01 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2014-10-29 18:55:35 +0000 |
commit | cdf127ca58af8c4d052249a39bbb8a921360211a (patch) | |
tree | c93cf096f69994f1865ca5e1af12716efbcdfb72 /m4/libtool.m4 | |
parent | a228b427608481768e9d5fab58751d1b4c4c2e92 (diff) | |
download | libtool-cdf127ca58af8c4d052249a39bbb8a921360211a.tar.gz |
libtool: preliminary support for tcc on linux*.
* 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>
Diffstat (limited to 'm4/libtool.m4')
-rw-r--r-- | m4/libtool.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 068f0d8b..b3c06179 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 |