From a95c0b7b451895022796d9adc3e18781a632697e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 24 Mar 2021 07:47:19 -0700 Subject: M1: disable -nopie. * configure: Don't try to use -nopie in Darwin environments. With newer clang on the M1, it generates nuisance warnings. --- configure | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 4739ccd4..71611dcd 100755 --- a/configure +++ b/configure @@ -1193,11 +1193,9 @@ else done fi -printf "Checking how to disable PIE ..." -if [ $android_target ] ; then - printf " n/a (Android)\n" -else +if ! [ $android_target ] && ! [ $darwin_target ] ; then + printf "Checking how to disable PIE ..." nopie_flags= for flag in -nopie -no-pie ; do -- cgit v1.2.3