summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index f79a71ff..57f7a929 100755
--- a/configure
+++ b/configure
@@ -888,14 +888,14 @@ printf "Checking how to disable PIE ..."
nopie_flags=
for flag in -nopie -no-pie ; do
- if conftest EXTRA_FLAGS=$flag ; then
+ 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 ; then
+ if conftest EXTRA_FLAGS="$flag$nopie_flags" && ! grep -q option conftest.err ; then
nopie_flags="$nopie_flags $flag"
break
fi