diff options
| author | Sergei Trofimovich <st@anti-virus.by> | 2011-01-04 11:17:52 +0200 |
|---|---|---|
| committer | Sergei Trofimovich <st@anti-virus.by> | 2011-01-04 11:17:52 +0200 |
| commit | 0a50e6c933cb3d470494c203e90808cef6873b06 (patch) | |
| tree | 8b8f7a193219a5e6f30ea9f927f6db0fe2b163de /tccasm.c | |
| parent | d97a25fbdd80ad005be41e9d47d6aefe2a5f6cae (diff) | |
| download | tinycc-0a50e6c933cb3d470494c203e90808cef6873b06.tar.gz tinycc-0a50e6c933cb3d470494c203e90808cef6873b06.tar.bz2 | |
tcc.c: fix an error when you build an object file with '-pthread' key set
The problem was partially fixed by Henry in the following patch:
tcc.c: skip -lpthread when -c option specified
But that patch had one brawback: it is sensitive to argument order,
as decision is taken during commandline parsing:
$ tcc -c a.c -o a.o -pthread # 1. works fine
tcc: error: file 'a.c' not found
$ tcc -pthread -c a.c -o a.o # 2. blows
tcc: error: cannot specify libraries with -c
This patch fixes case 2.
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
Diffstat (limited to 'tccasm.c')
0 files changed, 0 insertions, 0 deletions
