From 1b9ffcccdea2d29e24d3ef57cfca618c22654e67 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 3 Sep 2011 18:49:38 +0000 Subject: [PATCH] gmp: Fix build on ARM. --- lfs/gmp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lfs/gmp b/lfs/gmp index 10cd28f1ba..5b50081500 100644 --- a/lfs/gmp +++ b/lfs/gmp @@ -32,6 +32,10 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) +ifeq "$(MACHINE)" "i586" + CONFIGURE_ARGS = ABI=32 +endif + ############################################################################### # Top-level Rules ############################################################################### @@ -70,8 +74,8 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ABI=32 ./configure --prefix=/usr --enable-cxx \ - --enable-mpbsd --disable-nls + cd $(DIR_APP) && $(CONFIGURE_ARGS) ./configure --prefix=/usr \ + --enable-cxx --enable-mpbsd --disable-nls cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @rm -rf $(DIR_APP) -- 2.39.5