Ticket #8156: integer-gmp.patch

File integer-gmp.patch, 898 bytes (added by errge, 8 months ago)
  • gmp/ghc.mk

    diff --git a/gmp/ghc.mk b/gmp/ghc.mk
    index 1ded050..239eded 100644
    a b else 
    6666BUILD_SHARED=no 
    6767endif 
    6868 
     69ifeq "$(firstword $(subst -, ,$(HOSTPLATFORM)))" "x86_64" 
     70        FORCE_PIC=--with-pic=yes 
     71else 
     72        FORCE_PIC= 
     73endif 
     74 
    6975# In a bindist, we don't want to know whether /this/ machine has gmp, 
    7076# but whether the machine the bindist was built on had gmp. 
    7177ifeq "$(BINDIST)" "YES" 
    libraries/integer-gmp/gmp/libgmp.a libraries/integer-gmp/gmp/gmp.h: 
    139145            export PATH; \ 
    140146            cd gmpbuild && \ 
    141147            CC=$(CC_STAGE1) NM=$(NM) AR=$(AR_STAGE1) $(SHELL) ./configure \ 
    142                   --enable-shared=no \ 
     148                  --enable-shared=no $(FORCE_PIC) \ 
    143149                  --host=$(HOSTPLATFORM) --build=$(BUILDPLATFORM) 
    144150        $(MAKE) -C libraries/integer-gmp/gmp/gmpbuild MAKEFLAGS= 
    145151        $(CP) libraries/integer-gmp/gmp/gmpbuild/gmp.h libraries/integer-gmp/gmp/