bug-libtool
[Top][All Lists]
Advanced

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

support for 'tcc'


From: Simon Josefsson
Subject: support for 'tcc'
Date: Tue, 18 Nov 2003 15:40:38 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/22.0.0 (gnu/linux)

I tried tcc <http://fabrice.bellard.free.fr/tcc/> on my project, but I
had to specify --disable-shared for things to work.  The -shared
parameter is supported by tcc, but -soname and -rpath are not.

If I remove -soname and -rpath from $archive_cmds,
$archive_expsym_cmds, and $hardcode_libdir_flag_spec in the generated
libtool, everything works fine.  Is it possible to support shared
libraries with tcc as well?

Thanks.

/bin/sh ../libtool --mode=link tcc  -g   -o libidn.la -rpath /usr/local/lib 
-version-info 12:2:1 nfkc.lo toutf8.lo version.lo stringprep.lo rfc3454.lo 
profiles.lo punycode.lo idna.lo
rm -fr  .libs/libidn.a .libs/libidn.la .libs/libidn.lai
tcc -shared  .libs/nfkc.o .libs/toutf8.o .libs/version.o .libs/stringprep.o 
.libs/rfc3454.o .libs/profiles.o .libs/punycode.o .libs/idna.o  -lc  -soname 
libidn.so.11 -o .libs/libidn.so.11.1.2
tcc: invalid option -- '-soname'

$ make check
...
tcc -g -o /home/jas/src/libidn/tests/.libs/8405-lt-tst_idna tst_idna.o 
../lib/.libs/libidn.so -rpath /home/jas/src/libidn/lib/.libs
tcc version 0.9.20 - Tiny C Compiler - Copyright (C) 2001-2003 Fabrice Bellard
usage: tcc [-v] [-c] [-o outfile] [-Bdir] [-bench] [-Idir] [-Dsym[=val]] 
[-Usym]           [-Wwarn] [-g] [-b] [-bt N] [-Ldir] [-llib] [-shared] [-static]
           [infile1 infile2...] [-run infile args...]
...





reply via email to

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