diff options
author | Ben Gamari <ben@smart-cactus.org> | 2018-06-07 14:13:04 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2018-06-07 20:11:32 -0400 |
commit | 297879a78cc6ca4c27afb0cc863c8796b60da6e1 (patch) | |
tree | 09651c0eb7ff36a2d679b45f51a8c60a3c0fcc51 /aclocal.m4 | |
parent | 6fbe5f274ba84181f5db50901639ae382ef68c4b (diff) | |
download | haskell-297879a78cc6ca4c27afb0cc863c8796b60da6e1.tar.gz |
Add support for FreeBSD arm
Test Plan: Tested on armv6, armv7 and aarch64 on FreeBSD 12-CURRENT.
Reviewers: bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, erikd, carter
Differential Revision: https://phabricator.haskell.org/D4810
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 1cef8427fc..11c7acdeb2 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -651,6 +651,14 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], $3="$$3 -D_HPUX_SOURCE" $5="$$5 -D_HPUX_SOURCE" ;; + + arm*freebsd*) + # On arm/freebsd, tell gcc to generate Arm + # instructions (ie not Thumb). + $2="$$2 -marm" + $3="$$3 -Wl,-z,noexecstack" + $4="$$4 -z noexecstack" + ;; arm*linux*) # On arm/linux and arm/android, tell gcc to generate Arm # instructions (ie not Thumb). @@ -659,6 +667,10 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], $4="$$4 -z noexecstack" ;; + aarch64*freebsd*) + $3="$$3 -Wl,-z,noexecstack" + $4="$$4 -z noexecstack" + ;; aarch64*linux*) $3="$$3 -Wl,-z,noexecstack" $4="$$4 -z noexecstack" @@ -1902,6 +1914,10 @@ case "$1" in # converts the canonicalized target into someting llvm can understand AC_DEFUN([GHC_LLVM_TARGET], [ case "$2-$3" in + *-freebsd*-gnueabihf) + llvm_target_vendor="unknown" + llvm_target_os="freebsd-gnueabihf" + ;; hardfloat-*eabi) llvm_target_vendor="unknown" llvm_target_os="$3""hf" |