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

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

Details

Summary

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

clang: warning: argument unused during compilation: '-nopie'
[-Wunused-command-line-argument]

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

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
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.