summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@openbsd.org>2018-06-16 03:53:56 +0200
committerAndreas Fried <andreas.fried@kit.edu>2019-05-17 23:11:23 +0200
commitcb5bd0040854ad8650faf7fc329d870a0fb654f0 (patch)
tree42fd7282c4b22c4008cb7a145e3aff7ea8f511e3
parentf9dcf20face5e646d28c79222cb23ec0446827cf (diff)
Teach cparser about -nopie which is the OpenBSD synonym of -no-pie.
-rw-r--r--src/driver/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver/options.c b/src/driver/options.c
index d62c79f..4aae3b3 100644
--- a/src/driver/options.c
+++ b/src/driver/options.c
@@ -366,6 +366,7 @@ bool options_parse_linker(options_state_t *s)
driver_add_flag(&ldflags_obst, "-L%s", arg);
} else if (simple_arg("static", s)
|| simple_arg("no-pie", s)
+ || simple_arg("nopie", s)
|| simple_arg("nodefaultlibs", s)
|| simple_arg("nostartfiles", s)
|| simple_arg("nostdlib", s)