PLATFORM := $(shell echo $(HOSTPLATFORM) | sed 's/i[567]86/i486/g')
+# 2007-09-26
+# set -o igncr
+# is not a valid command on non-Cygwin-systems.
+# Let it fail silently instead of aborting the build.
+#
# 2007-07-05
# We do
# set -o igncr; export SHELLOPTS
$(TAR) -zxf $(GMP_TARBALL)
mv $(GMP_DIR) gmpbuild
chmod +x ln
- set -o igncr; export SHELLOPTS; \
+ (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
export PATH=`pwd`:$$PATH; \
cd gmpbuild && \
CC=$(WhatGccIsCalled) $(SHELL) configure \
$(TAR) -zxf $(GMP_TARBALL)
mv $(GMP_DIR) gmpbuild-shared
chmod +x ln
- set -o igncr; export SHELLOPTS; \
+ (set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
export PATH=`pwd`:$$PATH; \
cd gmpbuild-shared && \
CC=$(WhatGccIsCalled) $(SHELL) configure \
endif
endif
+# GMP takes a long time to build, but changes rarely. Hence we don't
+# bother cleaning it before validating, because that adds a
+# significant overhead to validation.
+ifeq "$(Validating)" "NO"
clean distclean maintainer-clean ::
$(RM) -f stamp.gmp.static stamp.gmp.shared
$(RM) -rf gmpbuild
$(RM) -rf gmpbuild-shared
+endif
#-----------------------------------------------------------------------------
#