[commit: ghc] wip/ghc710-aix: Random hacks for AIX (45b9045)
git at git.haskell.org
git at git.haskell.org
Mon Nov 16 08:44:20 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/ghc710-aix
Link : http://ghc.haskell.org/trac/ghc/changeset/45b904515fedfb39420053f39ac12e87634048bc/ghc
>---------------------------------------------------------------
commit 45b904515fedfb39420053f39ac12e87634048bc
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Mon Nov 16 09:42:41 2015 +0100
Random hacks for AIX
these need to be cleaned up properly
>---------------------------------------------------------------
45b904515fedfb39420053f39ac12e87634048bc
aclocal.m4 | 6 ++++++
ghc.mk | 5 +++++
mk/build.mk-aix | 32 ++++++++++++++++++++++++++++++++
utils/deriveConstants/DeriveConstants.hs | 2 +-
4 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/aclocal.m4 b/aclocal.m4
index 4242539..8732e0e 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -586,6 +586,12 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
$3="$$3 -fuse-ld=gold -Wl,-z,noexecstack"
$4="$$4 -z noexecstack"
;;
+
+ powerpc-ibm-aix*)
+ $2="$$2 -mminimal-toc"
+ $3="$$3 -mminimal-toc"
+ ;;
+
esac
# If gcc knows about the stack protector, turn it off.
diff --git a/ghc.mk b/ghc.mk
index 9aa0dc3..23bda65 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -556,6 +556,11 @@ endif
BOOT_LIBS = $(foreach lib,$(PACKAGES_STAGE0),$(libraries/$(lib)_dist-boot_v_LIB))
# ----------------------------------------
+# magic / HVR HACK XXX
+libraries/base_CONFIGURE_OPTS += --configure-option=--disable-largefile
+libraries/unix_CONFIGURE_OPTS += --configure-option=--disable-largefile
+
+# ----------------------------------------
# Special magic for the ghc-prim package
# We want the ghc-prim package to include the GHC.Prim module when it
diff --git a/mk/build.mk-aix b/mk/build.mk-aix
new file mode 100644
index 0000000..819970f
--- /dev/null
+++ b/mk/build.mk-aix
@@ -0,0 +1,32 @@
+GhcLibWays = v
+
+GhcUnregisterised = YES
+GhcWithNativeCodeGen = NO
+GhcThreaded = NO
+
+INTEGER_LIBRARY = integer-simple
+Stage1Only = YES
+#stage=1
+
+DYNAMIC_BY_DEFAULT = NO
+DYNAMIC_GHC_PROGRAMS = NO
+
+SRC_HC_OPTS = -O -H64m
+GhcStage1HcOpts = -O
+GhcStage2HcOpts = -O
+GhcHcOpts = -Rghc-timing
+GhcLibHcOpts = -O
+
+SplitObjs = NO
+HADDOCK_DOCS = NO
+BUILD_DOCBOOK_HTML = NO
+BUILD_DOCBOOK_PS = NO
+BUILD_DOCBOOK_PDF = NO
+#GhcLibWays += p
+
+# NoFib settings
+NoFibWays =
+STRIP_CMD = :
+
+#
+compiler/stage2/build/Parser_HC_OPTS += -optc-mfull-toc
diff --git a/utils/deriveConstants/DeriveConstants.hs b/utils/deriveConstants/DeriveConstants.hs
index ccf9028..c2eef33 100644
--- a/utils/deriveConstants/DeriveConstants.hs
+++ b/utils/deriveConstants/DeriveConstants.hs
@@ -662,7 +662,7 @@ getWanted verbose tmpdir gccProgram gccFlags nmProgram
execute verbose gccProgram (gccFlags ++ ["-c", cFile, "-o", oFile])
xs <- case os of
"openbsd" -> readProcess "/usr/bin/objdump" ["--syms", oFile] ""
- _ -> readProcess nmProgram ["-P", oFile] ""
+ _ -> readProcess (nmProgram ++ "2") ["-P", oFile] ""
let ls = lines xs
ms = map parseNmLine ls
More information about the ghc-commits
mailing list