From 40235c3844a5ab13472dc1bda28c148bc02d0108 Mon Sep 17 00:00:00 2001 From: Karel Gardas Date: Sun, 18 Oct 2015 22:41:40 +0200 Subject: [PATCH] fix RTS linker compilation failure on Solaris Reviewers: bgamari, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1341 --- rts/Linker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rts/Linker.c b/rts/Linker.c index 51db363eb3..8e5ffa1353 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -78,7 +78,8 @@ ( defined(linux_HOST_OS) || defined(freebsd_HOST_OS) || \ defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS ) || \ defined(openbsd_HOST_OS ) || defined(darwin_HOST_OS ) || \ - defined(kfreebsdgnu_HOST_OS) || defined(gnu_HOST_OS))) + defined(kfreebsdgnu_HOST_OS) || defined(gnu_HOST_OS ) || \ + defined(solaris2_HOST_OS))) /* Don't use mmap on powerpc_HOST_ARCH as mmap doesn't support * reallocating but we need to allocate jump islands just after each * object images. Otherwise relative branches to jump islands can fail -- GitLab