diff options
author | Ian Lynagh <igloo@earth.li> | 2011-10-19 16:36:40 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-10-19 16:36:40 +0100 |
commit | a6f9ebc58b0dc632bb01d0f202a7581ed02466ce (patch) | |
tree | 8171dd582c11f3ea058aa2bf35a028aa4228490b /aclocal.m4 | |
parent | 7ef5b2939076902ee54c9f1a2c50d55b274e4388 (diff) | |
download | haskell-a6f9ebc58b0dc632bb01d0f202a7581ed02466ce.tar.gz |
Add "have subsections via symbols" to the Platform type
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index df511677d5..674ba16d56 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -225,6 +225,20 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], esac } + dnl ** check for Apple-style dead-stripping support + dnl (.subsections-via-symbols assembler directive) + + AC_MSG_CHECKING(for .subsections_via_symbols) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([], [__asm__ (".subsections_via_symbols");])], + [AC_MSG_RESULT(yes) + HaskellHaveSubsectionsViaSymbols=True + AC_DEFINE([HAVE_SUBSECTIONS_VIA_SYMBOLS],[1], + [Define to 1 if Apple-style dead-stripping is supported.]) + ], + [HaskellHaveSubsectionsViaSymbols=False + AC_MSG_RESULT(no)]) + checkArch "$BuildArch" "" checkVendor "$BuildVendor" checkOS "$BuildOS" "" @@ -239,6 +253,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_VARS], AC_SUBST(HaskellTargetArch) AC_SUBST(HaskellTargetOs) + AC_SUBST(HaskellHaveSubsectionsViaSymbols) ]) |