diff --git a/configure b/configure index 1f0f485768..770f4c6526 100755 --- a/configure +++ b/configure @@ -1607,7 +1607,7 @@ EOF fi fi - if compile_prog "-fno-pie" "-nopie"; then + if compile_prog "-Werror -fno-pie" "-nopie"; then CFLAGS_NOPIE="-fno-pie" LDFLAGS_NOPIE="-nopie" fi