Fixed '-Wl,<option>' support (only works when gcc is used as linker)
authorMoritz Kroll <Moritz.Kroll@gmx.de>
Tue, 5 Aug 2008 01:15:14 +0000 (01:15 +0000)
committerMoritz Kroll <Moritz.Kroll@gmx.de>
Tue, 5 Aug 2008 01:15:14 +0000 (01:15 +0000)
[r20978]

main.c

diff --git a/main.c b/main.c
index 45ca3c8..99a2561 100644 (file)
--- a/main.c
+++ b/main.c
@@ -662,7 +662,7 @@ int main(int argc, char **argv)
                                {
                                        const char *opt;
                                        GET_ARG_AFTER(opt, "-Wl,");
-                                       add_flag(&ldflags_obst, "%s", opt);
+                                       add_flag(&ldflags_obst, "-Wl,%s", opt);
                                }
                                else set_warning_opt(&option[1]);
                        } else if(option[0] == 'm') {