summaryrefslogtreecommitdiff
path: root/distrib/configure.ac.in
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-11-11 12:05:21 -0500
committerBen Gamari <ben@smart-cactus.org>2016-11-11 12:05:40 -0500
commitd421a7e22e0be3de32376970b8c38ec308f959da (patch)
tree80e298beed878f74532e46d2249c78ab0a8e3630 /distrib/configure.ac.in
parentec0bf8117d1aefd20711a6152ebbca63f3bd0774 (diff)
downloadhaskell-d421a7e22e0be3de32376970b8c38ec308f959da.tar.gz
Pass -no-pie to GCC
Certain distributions (e.g. Debian and Ubuntu) have enabled PIE be default in their GCC packaging. This breaks our abuse of GCC as a linker which requires that we pass -Wl,-r, which is incompatible with PIE (since the former implies that we are generating a relocatable object file and the latter an executable). This is a second attempt at D2691. This attempt constrasts with D2691 in that it preserves the "does gcc support -no-pie" flag in settings, allowing this to be reconfigured by `configure` during installation of a binary distribution. Thanks for @rwbarton for drawing attention to this issue. Test Plan: Validate Reviewers: austin, hvr, erikd Reviewed By: erikd Subscribers: thomie, rwbarton, erikd Differential Revision: https://phabricator.haskell.org/D2693 GHC Trac Issues: #12759
Diffstat (limited to 'distrib/configure.ac.in')
-rw-r--r--distrib/configure.ac.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 0ae716b112..e733f64bbe 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -90,6 +90,7 @@ FIND_LD([LdCmd])
AC_SUBST([LdCmd])
FP_GCC_VERSION
+FP_GCC_SUPPORTS_NO_PIE
AC_PROG_CPP
FP_PROG_LD_IS_GNU