From: Vincent Lefevre <vinc...@vinc17.net>

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.

* m4/libtool.m4: tcc support.
---
Hi libtoolites!

Vincent Lefevre wrote[1]:

> Here's a new patch. I've tested it and it solves the problem.

Thoughts?
Jonathan

[1] http://bugs.debian.org/663945

 m4/libtool.m4 |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a8ecbc37..e1dc1662 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -4367,6 +4367,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)
-- 
1.7.10.2


Reply via email to