Jeremie Courreges-Anglas: > Testing on sparc64 proved successful even though '-fno-pie -nopie' > wasn't used in CFLAGS. Using those seems needed only on i386, and maybe > powerpc (can't test those archs). We want to use PIE when possible, so > the diff below restricts the use of '-fno-pie -nopie' to i386 and > powerpc.
i386 clearly does not require '-fno-pie -nopie' because we already build the port without it. Here's the relevant part of the configure script: CFLAGS_MACHINE= case "$host" in ... i*86*) CFLAGS_MACHINE='-march=i486 -m32';; ... *openbsd*) CFLAGS_MACHINE='-fno-pie -nopie';; esac The i*86* pattern matches "i386-unknown-openbsd6.4", so the *openbsd* case is skipped. ... GNU Prolog version: 1.4.5 (Nov 18 2018) Operating system : openbsd6.4 Processor : i386 Size of a WAM word: 32 bits C compiler : cc C flags : -O2 -pipe C flags machine : -march=i486 -m32 -fno-strict-aliasing ... (Unfortunately, it still errors out with text relocations when built on i386 with lld, but that's a separate issue.) -- Christian "naddy" Weisgerber na...@mips.inka.de