configure: Use -Werror to check for existence of -no-pie

Authored by bgamari on Apr 2 2018, 3:47 PM.



Clang throws a warning instead of an error when it is passed -no-pie,

clang: warning: argument unused during compilation: '-nopie'

Consequently configure concludes that it supports -no-pie. However, this will
fail when used with -Werror. The solution is to simply use -Werror in the
configure check.

Thanks to @goldfire for reporting this.

Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
bgamari created this revision.Apr 2 2018, 3:47 PM
This revision was not accepted when it landed; it landed in state Draft.Apr 19 2018, 6:09 PM
This revision was automatically updated to reflect the committed changes.