projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bbe434
)
forward -static and -shared flag to linker (like gcc does)
author
Matthias Braun
<matze@braunis.de>
Mon, 14 Mar 2011 12:01:58 +0000
(13:01 +0100)
committer
Matthias Braun
<matze@braunis.de>
Mon, 14 Mar 2011 12:01:58 +0000
(13:01 +0100)
main.c
patch
|
blob
|
history
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");