aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-09-05 12:11:46 -0700
committerMichael Forney <mforney@mforney.org>2020-09-05 12:11:46 -0700
commit1e7f6cdb542e6abbc72e2ba2d6aaf9b03d48fc00 (patch)
treeb9f56189e1af6b5e4fb0a343ea97b0d2e002034e /configure
parent489c853ed75f71ef435b695b2a51229d28292c7c (diff)
Add -nopie to linker flags on OpenBSD
The OpenBSD linker defaults to PIE, but QBE does not yet support generating position-independent code.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 13e3254..1fef818 100755
--- a/configure
+++ b/configure
@@ -106,7 +106,7 @@ case "$target" in
test "$host" = "$target" && : ${DEFAULT_PREPROCESSOR:=/usr/libexec/cpp}
startfiles='"-l", ":crt0.o", "-l", ":crtbegin.o"'
endfiles='"-l", "c", "-l", ":crtend.o"'
- linkflags='"-L", "/usr/lib",'
+ linkflags='"-L", "/usr/lib", "-nopie",'
defines='
/* required to prevent libc headers from declaring functions with conflicting linkage */
"-D", "_ANSI_LIBRARY",