forward -static and -shared flag to linker (like gcc does)
authorMatthias Braun <matze@braunis.de>
Mon, 14 Mar 2011 12:01:58 +0000 (13:01 +0100)
committerMatthias Braun <matze@braunis.de>
Mon, 14 Mar 2011 12:01:58 +0000 (13:01 +0100)
main.c

diff --git a/main.c b/main.c
index 7ea2115..34218ed 100644 (file)
--- a/main.c
+++ b/main.c
@@ -932,6 +932,10 @@ int main(int argc, char **argv)
                                add_flag(&cppflags_obst, "%s", arg);
                        } else if (streq(option, "pipe")) {
                                /* here for gcc compatibility */
+                       } else if (streq(option, "static")) {
+                               add_flag(&ldflags_obst, "-static");
+                       } else if (streq(option, "shared")) {
+                               add_flag(&ldflags_obst, "-shared");
                        } else if (option[0] == 'f') {
                                char const *orig_opt;
                                GET_ARG_AFTER(orig_opt, "-f");