summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-11-10 13:18:09 -0500
committerBen Gamari <ben@smart-cactus.org>2016-11-10 13:21:09 -0500
commitbae4a55b1fb403f610b4b55a1b6fb3f03e9c2026 (patch)
tree114191a265045a30ea86dcaa81e8e9c107fca41a /distrib
parent9030d8e4dc321dbcd32baae33f150b4e7c8ed141 (diff)
downloadhaskell-bae4a55b1fb403f610b4b55a1b6fb3f03e9c2026.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). Test Plan: Validate Reviewers: hvr, austin Subscribers: rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D2691 GHC Trac Issues: #12759
Diffstat (limited to 'distrib')
-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