From 1e7f6cdb542e6abbc72e2ba2d6aaf9b03d48fc00 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 5 Sep 2020 12:11:46 -0700 Subject: Add -nopie to linker flags on OpenBSD The OpenBSD linker defaults to PIE, but QBE does not yet support generating position-independent code. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit v1.2.3