[commit: ghc] wip/ghc710-aix: WIP: local random AIX hacks (faf587b)

git at git.haskell.org git at git.haskell.org
Mon Nov 16 09:19:52 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ghc710-aix
Link       : http://ghc.haskell.org/trac/ghc/changeset/faf587b6caf037daf91d906282b54f0d5dd2af4b/ghc

>---------------------------------------------------------------

commit faf587b6caf037daf91d906282b54f0d5dd2af4b
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Mon Nov 16 10:19:37 2015 +0100

    WIP: local random AIX hacks


>---------------------------------------------------------------

faf587b6caf037daf91d906282b54f0d5dd2af4b
 ghc.mk                                   |  5 +++++
 mk/build.mk-aix                          | 32 ++++++++++++++++++++++++++++++++
 utils/deriveConstants/DeriveConstants.hs |  2 +-
 3 files changed, 38 insertions(+), 1 deletion(-)

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..d0464a2
--- /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