summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2013-08-28 16:55:42 -0500
committerAustin Seipp <aseipp@pobox.com>2013-08-28 17:39:53 -0500
commit98b0d05de35bd531102d832f3108050549fd781f (patch)
tree307fa9d21df370194e4b5308bc5ec6c90513d53c /aclocal.m4
parent4652a5d2be0d6c49ab2bc311ccec766d08887122 (diff)
downloadhaskell-98b0d05de35bd531102d832f3108050549fd781f.tar.gz
Rework how iOS does linking (#8127)
iOS has some particular constraints about how applications can be built: * We must generate a static library (.a) since XCode does the final link. * We need to carefully give the right set of arguments to libtool in the case we're generating an archive. * Dynamic linking isn't supported. * It can only be done on OS X. This patch cleans up all of the above. We add a new flag `-staticlib` (only supported on Darwin) that allows us to produce archive files using libtool, and a -pgmlibtool flag to control which 'libtool' executable to use. This fixes #8127. I believe this is the last piece missing from the iOS cross compiler. Authored-by: Luke Iannini <lukexi@me.com> Authored-by: Maxwell Swadling <maxwellswadling@gmail.com> Authored-by: Stephen Blackheath <...@blacksapphire.com> Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index e742e907d6..7e555446a1 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -464,6 +464,7 @@ AC_DEFUN([FP_SETTINGS],
SettingsPerlCommand="$PerlCmd"
SettingsDllWrapCommand="/bin/false"
SettingsWindresCommand="/bin/false"
+ SettingsLibtoolCommand="libtool"
SettingsTouchCommand='touch'
if test -z "$LlcCmd"
then
@@ -490,6 +491,7 @@ AC_DEFUN([FP_SETTINGS],
AC_SUBST(SettingsPerlCommand)
AC_SUBST(SettingsDllWrapCommand)
AC_SUBST(SettingsWindresCommand)
+ AC_SUBST(SettingsLibtoolCommand)
AC_SUBST(SettingsTouchCommand)
AC_SUBST(SettingsLlcCommand)
AC_SUBST(SettingsOptCommand)