summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2015-11-16 10:19:37 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-11-17 23:27:56 +0100
commit3c2fb6bbb5d5ae6dd6f22ac669e35c08d1d65ae2 (patch)
tree46acbd405f6e45e0f733cf80e697fac835290c89
parent9b987c3f929c80e0bf8d5bc2f7f41fa26b9ea9c3 (diff)
downloadhaskell-3c2fb6bbb5d5ae6dd6f22ac669e35c08d1d65ae2.tar.gz
WIP: local random AIX hackswip/ghc710-aix
-rw-r--r--aclocal.m44
-rw-r--r--ghc.mk5
-rw-r--r--mk/build.mk-aix32
-rw-r--r--utils/deriveConstants/DeriveConstants.hs2
4 files changed, 40 insertions, 3 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 65ee2cd0c9..11df1de03e 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -588,8 +588,8 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
;;
powerpc-ibm-aix*)
- $2="$$2 -mminimal-toc -D_THREAD_SAFE"
- $3="$$3 -mminimal-toc -D_THREAD_SAFE"
+ $2="$$2 -mcpu=power7 -mminimal-toc -D_THREAD_SAFE"
+ $3="$$3 -mcpu=power7 -mminimal-toc -D_THREAD_SAFE"
$5="$$5 -D_THREAD_SAFE"
;;
diff --git a/ghc.mk b/ghc.mk
index 9aa0dc35ef..23bda65832 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 0000000000..d0464a2140
--- /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 ccf9028904..c2eef336b6 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