GMP_TARBALL := $(firstword $(wildcard gmp*.tar.gz))
GMP_DIR := $(subst .tar.gz,,$(GMP_TARBALL))
-BMP_BUILD_DIR := build
ifeq "$(findstring dyn, $(GhcRTSWays))" "dyn"
BUILD_SHARED=yes
mv $(GMP_DIR) gmpbuild
chmod +x ln
(set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
- export PATH=`pwd`:$$PATH; \
+ PATH=`pwd`:$$PATH; \
+ export PATH; \
cd gmpbuild && \
CC=$(WhatGccIsCalled) $(SHELL) configure \
--enable-shared=no --host=$(PLATFORM) --build=$(PLATFORM)
mv $(GMP_DIR) gmpbuild-shared
chmod +x ln
(set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
- export PATH=`pwd`:$$PATH; \
+ PATH=`pwd`:$$PATH; \
+ export PATH; \
cd gmpbuild-shared && \
CC=$(WhatGccIsCalled) $(SHELL) configure \
--enable-shared=yes --disable-static --host=$(PLATFORM) --build=$(PLATFORM)