]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: Fix $wl setting for tcc on GNU systems
authorVincent Lefevre <vincent@vinc17.net>
Wed, 9 Oct 2013 21:19:07 +0000 (14:19 -0700)
committerBrooks Moses <bmoses@google.com>
Wed, 9 Oct 2013 21:24:11 +0000 (14:24 -0700)
(This addresses http://bugs.debian.org/663945.  See there for
more-detailed discussion.)

tcc gained support for "-Wl,-rpath -Wl,<directory>" 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

m4/libtool.m4

index 262922bee79517998524533ea4a8fd4fd2f064e3..fa192d91f58d232b77615e28819f1e9449437201 100644 (file)
@@ -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)