[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Support -Wl,opt -Wl,arg syntax
From: |
Thomas Preud'homme |
Subject: |
[Tinycc-devel] Support -Wl,opt -Wl,arg syntax |
Date: |
Thu, 15 Mar 2012 00:30:52 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; ) |
ld support arguments to multiple-letter options being passed in two ways:
* -opt=arg
* -opt arg
Unfortunetely, libtool generate command line of the second form. Since tcc
didn't support this form yet, I did a commit to add the support. The way it is
done is to concatenate all -Wl options into one and then pass it to
tcc_set_linker. I also added a logic in tcc_set_linker to cut at the next
comma (if there is one) to have a proper error message in case of wrong
option.
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'.
Best regards,
Thomas Preud'homme
signature.asc
Description: This is a digitally signed message part.
- [Tinycc-devel] Support -Wl,opt -Wl,arg syntax,
Thomas Preud'homme <=
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, grischka, 2012/03/15
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, Thomas Preud'homme, 2012/03/15
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, grischka, 2012/03/15
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, Thomas Preud'homme, 2012/03/16
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, grischka, 2012/03/16
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, Thomas Preud'homme, 2012/03/16
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, grischka, 2012/03/20
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, Thomas Preud'homme, 2012/03/20
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, grischka, 2012/03/20
- Re: [Tinycc-devel] Support -Wl,opt -Wl,arg syntax, Thomas Preud'homme, 2012/03/20