summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-02-19 09:31:31 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2021-03-01 10:34:24 +0800
commitfaf615c61024b996a5f137dd6b78e653f48daa9a (patch)
tree0e78f8ff434f625d3da68ff3d91cd0c0b13961e6
parentfe28a062e47bd914a6879f2d01ff268983c075ad (diff)
downloadhaskell-faf615c61024b996a5f137dd6b78e653f48daa9a.tar.gz
[darwin, aarch64-linux] always PIC
-rw-r--r--includes/rts/Flags.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/rts/Flags.h b/includes/rts/Flags.h
index d0c41a1576..e8d2313108 100644
--- a/includes/rts/Flags.h
+++ b/includes/rts/Flags.h
@@ -199,8 +199,10 @@ typedef struct _CONCURRENT_FLAGS {
* When linkerAlwaysPic is true, the runtime linker assume that all object
* files were compiled with -fPIC -fexternal-dynamic-refs and load them
* anywhere in the address space.
+ * Note that there is no 32bit darwin system we can realistically expect to
+ * run on or compile for.
*/
-#if defined(x86_64_HOST_ARCH) && defined(darwin_HOST_OS)
+#if defined(darwin_HOST_OS) || defined(aarch64_HOST_ARCH)
#define DEFAULT_LINKER_ALWAYS_PIC true
#else
#define DEFAULT_LINKER_ALWAYS_PIC false