[Top][All Lists]

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

Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax

From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax
Date: Thu, 15 Mar 2012 23:03:17 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

Le jeudi 15 mars 2012 22:53:14, grischka a écrit :
> Thomas Preud'homme wrote:
> > In other words, tcc -o foo -Wl,-rpathstuff,--oformat,coff will correctly
> > says "unsupported linker option '-rpathstuff'" instead of "unsupported
> > linker option '-rpathstuff,--oformat,coff'.
> Well, but did you test whether it still works for correct input,
> such as
>       -Wl,-rpath=stuff
> ???
Yes but maybe I missed something.

23:01 address@hidden ~/rpath% cat libtest.c
int a = 42;
23:02 address@hidden ~/rpath% cat test.c   
extern int a;

int main(void)
        return a;
23:02 address@hidden ~/rpath% gcc -Wall -Wextra -shared -fPIC -o libtest.so 
23:02 address@hidden ~/rpath% tcc -Wall -Wextra -L/home/robotux/rpath -Wl,-
rpath -Wl,/home/robotux/rpath -o test test.c -ltest
23:02 address@hidden ~/rpath% ./test 
zsh: exit 42    ./test
23:02 address@hidden ~/rpath% tcc -Wall -Wextra -L/home/robotux/rpath -Wl,-
rpath=/home/robotux/rpath -o test test.c -ltest    
23:02 address@hidden ~/rpath% ./test                                            
zsh: exit 42    ./test

Can you give me an example which fails for you?

Best regards and thanks for watching my back.
> --- grischka
Thomas Preud'homme
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

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