From a2ae08b22f7ffc41f3bef42f2437dc2a2d4f99ed Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 23 Dec 2020 07:12:04 -0800 Subject: configure: don't disable PIE on Android. * configure: Move how-to-disable-PIE check below plaform detections, where we know whether we have Android or not. On Android, we can't disable PIE; non-PIE executables are not supported. Let's cross our fingers things work. --- configure | 54 +++++++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 25 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5c3fd974..78909670 100755 --- a/configure +++ b/configure @@ -1009,31 +1009,6 @@ fi rm -f conftest$exe -printf "Checking how to disable PIE ..." - -nopie_flags= - -for flag in -nopie -no-pie ; do - if conftest EXTRA_FLAGS=$flag && ! grep -q option conftest.err ; then - nopie_flags=" $flag" - break - fi -done - -for flag in -fnopie -fno-pie ; do - if conftest EXTRA_FLAGS="$flag$nopie_flags" && ! grep -q option conftest.err ; then - nopie_flags="$nopie_flags $flag" - break - fi -done - -if [ -n "$nopie_flags" ]; then - printf "%s\n" "$nopie_flags" - opt_flags="$opt_flags$nopie_flags" -else - printf " n/a\n" -fi - printf "Checking for disabling source code quoting in compiler errors ... " cat > conftest.c <