summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-03-29 17:28:16 -0400
committerBen Gamari <ben@smart-cactus.org>2017-03-29 18:06:20 -0400
commit81f5b6ecbadec49af53189756dda5e0b199f9703 (patch)
tree5e0f3dfb35c36234a23717a85bc1f1d567f11835 /aclocal.m4
parent154d224ade3d9f22b0e22fc8be8f3907f1ad51d2 (diff)
downloadhaskell-81f5b6ecbadec49af53189756dda5e0b199f9703.tar.gz
Check TargetPlatform instead of HostPlatform for leading underscore
Reviewers: austin, hvr, rwbarton, bgamari Reviewed By: rwbarton, bgamari Subscribers: rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D3348
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 33372152c3..6341bc9f1a 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -874,12 +874,14 @@ FP_CHECK_ALIGNMENT([$1])
# checking for *no* leading underscore first. Sigh. --SDM
#
# Similarly on OpenBSD, but this test doesn't help. -- dons
+#
AC_DEFUN([FP_LEADING_UNDERSCORE],
[AC_CHECK_LIB([elf], [nlist], [LIBS="-lelf $LIBS"])
AC_CACHE_CHECK([leading underscore in symbol names], [fptools_cv_leading_underscore], [
# Hack!: nlist() under Digital UNIX insist on there being an _,
# but symbol table listings shows none. What is going on here?!?
-case $HostPlatform in
+case $TargetPlatform in
+*linux-android*) fptools_cv_leading_underscore=no;;
*openbsd*) # x86 openbsd is ELF from 3.4 >, meaning no leading uscore
case $build in
i386-*2\.@<:@0-9@:>@ | i386-*3\.@<:@0-3@:>@ ) fptools_cv_leading_underscore=yes ;;