libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH/RFC] Fix $wl setting for tcc on GNU systems


From: Jonathan Nieder
Subject: [PATCH/RFC] Fix $wl setting for tcc on GNU systems
Date: Sat, 19 May 2012 21:26:40 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

From: Vincent Lefevre <address@hidden>

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

[Prev in Thread] Current Thread [Next in Thread]