cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 1e7f6cdb542e6abbc72e2ba2d6aaf9b03d48fc00
parent 489c853ed75f71ef435b695b2a51229d28292c7c
Author: Michael Forney <mforney@mforney.org>
Date:   Sat,  5 Sep 2020 12:11:46 -0700

Add -nopie to linker flags on OpenBSD

The OpenBSD linker defaults to PIE, but QBE does not yet support
generating position-independent code.

Diffstat:
Mconfigure | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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",