[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] [PATCH 10/11] tcc: Explicitly require -l<lib> for librari
From: |
Kirill Smelkov |
Subject: |
[Tinycc-devel] [PATCH 10/11] tcc: Explicitly require -l<lib> for libraries |
Date: |
Mon, 21 Jun 2010 18:31:29 +0400 |
Previously it was possible to specify e.g. -q<lib> and still link with
lib. Avoid such behaviour by checking for '-l' instead of '-l.'
---
tcc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tcc.c b/tcc.c
index b9478d9..136612e 100644
--- a/tcc.c
+++ b/tcc.c
@@ -474,7 +474,7 @@ int main(int argc, char **argv)
const char *filename;
filename = files[i];
- if (filename[0] == '-' && filename[1]) {
+ if (filename[0] == '-' && filename[1] == 'l') {
if (tcc_add_library(s, filename + 2) < 0) {
error_noabort("cannot find %s", filename);
ret = 1;
--
1.7.1.427.g9562c
- [Tinycc-devel] [PATCH 00/11] Teach tcc -MD/-MF (take 2), Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 02/11] .gitignore += *.o *.a, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 01/11] .cvsignore -> .gitignore, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 04/11] tcc: Fix typo in error (it's '%s', not '%s), Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 05/11] Add input files/libs and reloc_output switch to TCCState, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 06/11] tcc: Refactor "compute default outfile name" into libtcc function, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 08/11] tcc -E: Let output_default be <file>.o instead of a.out, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 10/11] tcc: Explicitly require -l<lib> for libraries,
Kirill Smelkov <=
- [Tinycc-devel] [PATCH 11/11] .gitignore += tags, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 09/11] Document what tcc_fileextension does, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 03/11] chmod a-x i386-gen.c, Kirill Smelkov, 2010/06/21
- [Tinycc-devel] [PATCH 07/11] tcc: Draft suppoprt for -MD/-MF options, Kirill Smelkov, 2010/06/21