freebsd-ports/lang/ghc/files844/patch-configure
Gleb Popov 0402fd9082 Merge lang/ghcXXX ports into lang/ghc.
Remove OPTIONS support from library Haskell ports.
Do not install documentation by library Haskell ports.
Remove deprecation notice from library ports, that still needed.

PR:		224083
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D20247
2019-05-28 15:53:04 +00:00

22 lines
792 B
Text

--- configure.orig 2018-03-06 20:04:54 UTC
+++ configure
@@ -9108,6 +9108,19 @@ $as_echo_n "checking Setting up CFLAGS, LDFLAGS, IGNOR
IGNORE_LINKER_LD_FLAGS="$IGNORE_LINKER_LD_FLAGS -z noexecstack"
;;
+ arm*freebsd*)
+ # On arm/freebsd, tell gcc to generate Arm
+ # instructions (ie not Thumb).
+ CFLAGS="$CFLAGS -marm"
+ LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+ IGNORE_LINKER_LD_FLAGS="$IGNORE_LINKER_LD_FLAGS -z noexecstack"
+ ;;
+
+ aarch64*freebsd*)
+ LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
+ IGNORE_LINKER_LD_FLAGS="$IGNORE_LINKER_LD_FLAGS -z noexecstack"
+ ;;
+
powerpc-ibm-aix*)
# We need `-D_THREAD_SAFE` to unlock the thread-local `errno`.
CFLAGS="$CFLAGS -D_THREAD_SAFE"