summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/host.mk5
-rw-r--r--tools/cloog/Makefile5
-rw-r--r--tools/gmp/Makefile5
-rw-r--r--tools/mpc/Makefile5
-rw-r--r--tools/ppl/Makefile5
5 files changed, 3 insertions, 22 deletions
diff --git a/include/host.mk b/include/host.mk
index 02365d9ea..8092e8db7 100644
--- a/include/host.mk
+++ b/include/host.mk
@@ -32,11 +32,12 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk
HOST_OS=`uname`; \
case "$$HOST_OS" in \
Linux) HOST_ARCH=`uname -m`;; \
+ Darwin) HOST_ARCH=`uname -m`;; \
*) HOST_ARCH=`uname -p`;; \
esac; \
GNU_HOST_NAME=`gcc -dumpmachine`; \
- [ -n "$$GNU_HOST_NAME" ] || \
- GNU_HOST_NAME=`$(SCRIPT_DIR)/config.guess`; \
+ [ -z "$$GNU_HOST_NAME" -o "$$HOST_OS" == "Darwin" ] && \
+ GNU_HOST_NAME=`$(TOPDIR)/scripts/config.guess`; \
echo "HOST_OS:=$$HOST_OS" > $@; \
echo "HOST_ARCH:=$$HOST_ARCH" >> $@; \
echo "GNU_HOST_NAME:=$$GNU_HOST_NAME" >> $@; \
diff --git a/tools/cloog/Makefile b/tools/cloog/Makefile
index 3bbf812fe..29b4b7304 100644
--- a/tools/cloog/Makefile
+++ b/tools/cloog/Makefile
@@ -17,11 +17,6 @@ include $(INCLUDE_DIR)/host-build.mk
unexport CFLAGS
-ifeq ($(HOST_OS),Darwin)
- GNU_HOST_NAME:=
- HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
-endif
-
HOST_CONFIGURE_VARS += \
LIBS=-lstdc++
diff --git a/tools/gmp/Makefile b/tools/gmp/Makefile
index f375ada34..514187ce6 100644
--- a/tools/gmp/Makefile
+++ b/tools/gmp/Makefile
@@ -17,11 +17,6 @@ include $(INCLUDE_DIR)/host-build.mk
unexport CFLAGS
-ifeq ($(HOST_OS),Darwin)
- GNU_HOST_NAME:=
- HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
-endif
-
HOST_CONFIGURE_ARGS += \
--enable-static \
--disable-shared \
diff --git a/tools/mpc/Makefile b/tools/mpc/Makefile
index 3898830c0..8f8f07f1c 100644
--- a/tools/mpc/Makefile
+++ b/tools/mpc/Makefile
@@ -17,11 +17,6 @@ include $(INCLUDE_DIR)/host-build.mk
unexport CFLAGS
-ifeq ($(HOST_OS),Darwin)
- GNU_HOST_NAME:=
- HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
-endif
-
HOST_CONFIGURE_ARGS += \
--enable-static \
--disable-shared \
diff --git a/tools/ppl/Makefile b/tools/ppl/Makefile
index c9c09c512..7eea73f0b 100644
--- a/tools/ppl/Makefile
+++ b/tools/ppl/Makefile
@@ -17,11 +17,6 @@ include $(INCLUDE_DIR)/host-build.mk
unexport CFLAGS
-ifeq ($(HOST_OS),Darwin)
- GNU_HOST_NAME:=
- HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
-endif
-
HOST_CONFIGURE_ARGS += \
--enable-static \
--disable-shared