From: Matthias Braun Date: Mon, 14 Mar 2011 12:01:58 +0000 (+0100) Subject: forward -static and -shared flag to linker (like gcc does) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=50915970362b61590d8c0c3ae2b5bea263bfcc31;p=cparser forward -static and -shared flag to linker (like gcc does) --- diff --git a/main.c b/main.c index 7ea2115..34218ed 100644 --- 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");