[commit: ghc] ghc-7.10: Fix build on amd64/solaris. (072cc76)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 16:42:49 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/072cc766016bf4a09a477f98bb16cf55b253c4f6/ghc

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

commit 072cc766016bf4a09a477f98bb16cf55b253c4f6
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Fri Mar 13 20:38:13 2015 +0000

    Fix build on amd64/solaris.
    
    Summary:
    Commit 71fcc4c096ec0 breaks the 64bit build on Solaris 11. Solaris
    is a multi-lib OS so both 32bit and 64bit binaries may  be run, but
    by default it compiles to 32bit so that -m64 needs to be added in
    the appropriate place when compiling for 64 bits.
    
    Patch-from: Karel Gardas <karel.gardas at centrum.cz>
    
    Reviewers: kgardas, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D733
    
    (cherry picked from commit 83afcd174cdbf4fb770371da764f91ca9ad414a7)


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

072cc766016bf4a09a477f98bb16cf55b253c4f6
 mk/config.mk.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index 49d8610..42720c8 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -568,6 +568,7 @@ define set_stage_HSC2HS_OPTS
 # $1 = stage
 SRC_HSC2HS_OPTS_STAGE$1 += $$(addprefix --cflag=,$$(filter-out -O,$$(SRC_CC_OPTS) $$(CONF_CC_OPTS_STAGE$1)))
 SRC_HSC2HS_OPTS_STAGE$1 += $$(addprefix --cflag=,$$(CONF_CPP_OPTS_STAGE$1))
+SRC_HSC2HS_OPTS_STAGE$1 += $$(addprefix --lflag=,$$(CONF_GCC_LINKER_OPTS_STAGE$1))
 endef
 $(eval $(call set_stage_HSC2HS_OPTS,0))
 $(eval $(call set_stage_HSC2HS_OPTS,1))



More information about the ghc-commits mailing list