Browse Source

copy fsf config.guess on Cygwin and use it.

When compiling gmp under Windows XP on a 64 Bit AMD system,
config.guess tries to build with ABI64 and fails. Using configfsf.guess
in this case, will fix it.
Waldemar Brodkorb 13 years ago
parent
commit
9f4a419ecb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      toolchain/gmp/Makefile

+ 4 - 1
toolchain/gmp/Makefile

@@ -12,8 +12,11 @@ endif
 
 
 $(WRKBUILD)/.headers:
 $(WRKBUILD)/.headers:
 $(WRKBUILD)/.configured:
 $(WRKBUILD)/.configured:
+ifneq (,$(filter CYGWIN%,${OStype}))
+	(cd $(WRKBUILD); cp configfsf.guess config.guess);
+endif
 	(cd $(WRKBUILD); \
 	(cd $(WRKBUILD); \
-		$(WRKBUILD)/configure \
+		./configure \
 		--prefix=$(STAGING_HOST_DIR) \
 		--prefix=$(STAGING_HOST_DIR) \
 		--disable-shared \
 		--disable-shared \
 		--enable-static \
 		--enable-static \