tags 663945 + patch
quit

Vincent Lefevre wrote:

> If I run
>
>   ./configure CC=tcc
>   make
>   make check
>
> then I get the failure at link time. But in the libtool script
> generated by configure, if I replace wl="" by wl="-Wl," then I
> no longer get link time failures. So, libtool should use -Wl,
> for tcc.

How about this patch?  (Patch is against the "master" branch of
<git://git.savannah.gnu.org/libtool.git>.  Untested.)

Thanks again,
Jonathan

diff --git i/m4/libtool.m4 w/m4/libtool.m4
index a8ecbc37..89249cb9 100644
--- i/m4/libtool.m4
+++ w/m4/libtool.m4
@@ -4047,6 +4047,14 @@ m4_if([$1], [CXX], [
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
            ;;
+         tcc* )
+           # Fabrice Bellard et al's Tiny C Compiler
+           # When it learns to make shared objects, it will
+           # presumably use -fPIC.
+           _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* | pgcpp*)
            # Portland Group C++ compiler
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to