summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2017-09-25 18:41:23 -0400
committerBen Gamari <ben@smart-cactus.org>2017-09-25 22:43:52 -0400
commit65f7d87a9bd43a6dfc077fbcb8781de07dd335c1 (patch)
tree1d27d4410e86990d069b8c50d5eda266245a09dd /distrib
parent49c1a20dbbdabc8101877e8ef2c8de9ec3a079d0 (diff)
downloadhaskell-65f7d87a9bd43a6dfc077fbcb8781de07dd335c1.tar.gz
configure: Don't hard-code strip tool
For reasons that I don't entirely understand we didn't previously detect `strip` using autoconf. This naturally broke during cross-compilation. How did this ever work? I have no idea. Test Plan: Try cross-compiling Reviewers: austin, hvr, angerman Subscribers: rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D4008
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index 9a94cf2c3d..509e74e93e 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -178,6 +178,12 @@ dnl ** how to invoke `ar' and `ranlib'
FP_PROG_AR_SUPPORTS_ATFILE
FP_PROG_AR_NEEDS_RANLIB
+dnl ** which strip to use?
+dnl --------------------------------------------------------------
+AC_CHECK_TARGET_TOOL([STRIP], [strip])
+StripCmd="$STRIP"
+AC_SUBST([StripCmd])
+
dnl ** Have libdw?
dnl --------------------------------------------------------------
dnl Check for a usable version of libdw/elfutils