summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Bucher <johannes.bucher2@student.kit.edu>2019-12-06 14:34:22 +0100
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-12-06 14:34:22 +0100
commitf9a9fc7dc7c74ead22e15b1be6ce6f990219f45f (patch)
treef5be078fdc80d01a110f43b687cd6d26f8625d97
parent28b97b286025bb9be52115620bef33bf85e092ab (diff)
default to -fPIC on OpenBSD
-rw-r--r--ir/be/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/be/platform.c b/ir/be/platform.c
index 70a72ee..d8fef71 100644
--- a/ir/be/platform.c
+++ b/ir/be/platform.c
@@ -179,6 +179,7 @@ void ir_platform_set(ir_machine_triple_t const *machine,
goto BSD;
} else if (strstart(os, "openbsd")) {
ppdef1("__OpenBSD__");
+ ir_platform.pic_is_default = true;
goto BSD;
} else if (strstr(os, "bsd") != NULL) {
BSD: