diff options
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index f65c633..ed9639a 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -208,10 +208,17 @@ static int slbt_split_argv( cargv = sargv->cargv; for (; i<argc; i++) { - if (argv[i][0] != '-') - *cargv++ = argv[i]; + if (argv[i][0] != '-') { + if (argv[i+1] && (argv[i+1][0] == '+') + && (argv[i+1][1] == '=') + && (argv[i+1][2] == 0) + && !(strrchr(argv[i],'.'))) + /* libfoo_la_LDFLAGS += -Wl,.... */ + i++; + else + *cargv++ = argv[i]; - else if (argv[i][1] == 'o') { + } else if (argv[i][1] == 'o') { *targv++ = argv[i]; if (argv[i][2] == 0) |