From 9fd7116044f9a7961d36349b4b935babc6c06558 Mon Sep 17 00:00:00 2001 From: NicJA Date: Wed, 19 Apr 2017 22:10:50 +0000 Subject: [PATCH] handle the build and gnu options separately. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54565 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- config/make.tmpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/make.tmpl b/config/make.tmpl index 91214f2185..56a5467c1f 100644 --- a/config/make.tmpl +++ b/config/make.tmpl @@ -2812,7 +2812,7 @@ DEPS := $(DEPS) $(STUBS_DEP) extracflags="$(OPTIMIZATION_CFLAGS)" extracxxflags="$(OPTIMIZATION_CFLAGS)" \ aros_prefix= nix_dir_layout= nix=no compiler=target crossbuild=no \ install_target=install preconfigure= postconfigure= postinstall= \ - config_env_extra= install_env= use_build_env=no gnuflags=yes + config_env_extra= install_env= use_build_env=no buildflags=yes gnuflags=yes ifneq (%(prefix),) %(mmake)-prefix := %(prefix) @@ -2982,9 +2982,12 @@ endif TARGET_RANLIB="$(strip $(RANLIB))" \ TARGET_STRIP="$(strip $(STRIP_PLAIN))" \ TARGET_NM="$(strip $(NM_PLAIN))" -ifeq (%(gnuflags),yes) +ifeq (%(buildflags),yes) %(mmake)-config_opts += --target=$(AROS_TARGET_CPU)-aros - %(mmake)-config_opts += --build=$(AROS_HOST_CPU)-$(AROS_HOST_ARCH) --host=$(AROS_TARGET_CPU)-aros + %(mmake)-config_opts += --build=$(AROS_HOST_CPU)-$(AROS_HOST_ARCH) + %(mmake)-config_opts += --host=$(AROS_TARGET_CPU)-aros +endif +ifeq (%(gnuflags),yes) %(mmake)-config_opts += --without-pic --disable-shared %(mmake)-config_opts += --disable-nls --without-x endif -- 2.11.4.GIT