Changeset View
Changeset View
Standalone View
Standalone View
lang/ghc/files/patch-configure
--- 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" | |||||
arrowd: This patch seems to be a duplicate of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228706… | |||||
Not Done Inline ActionsNo, pr 228706 adds the correct suffix for arm* target. This patch adds the correct compiler flags to build ghc on arm* mikael: No, pr 228706 adds the correct suffix for arm* target. This patch adds the correct compiler… | |||||
;; | |||||
+ 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" |
This patch seems to be a duplicate of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228706 no?