From 1e79e1a91181384f6047823a438f31ef54ce4bdb Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 17 Dec 2015 08:40:44 +0100 Subject: cross-gcc: use ptx/ifdef Signed-off-by: Michael Olbrich --- rules/cross-gcc.make | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make index ef9568f..3df1a8a 100644 --- a/rules/cross-gcc.make +++ b/rules/cross-gcc.make @@ -90,23 +90,13 @@ CROSS_GCC_AUTOCONF_COMMON := \ \ --with-pkgversion=$(PTXCONF_CROSS_GCC_PKGVERSION) \ --enable-threads=$(PTXCONF_CROSS_GCC_THREADS) \ - --with-system-zlib - -ifdef PTXCONF_HOST_GMP -CROSS_GCC_AUTOCONF_COMMON += --with-gmp -endif - -ifdef PTXCONF_HOST_MPFR -CROSS_GCC_AUTOCONF_COMMON += --with-mpfr -endif - -ifdef PTXCONF_HOST_MPC -CROSS_GCC_AUTOCONF_COMMON += --with-mpc -endif - -ifdef PTXCONF_HOST_CLOOG -CROSS_GCC_AUTOCONF_COMMON += --with-isl --with-cloog -endif + --with-system-zlib \ + \ + $(call ptx/ifdef,PTXCONF_HOST_GMP,--with-gmp) \ + $(call ptx/ifdef,PTXCONF_HOST_MPFR,--with-mpfr) \ + $(call ptx/ifdef,PTXCONF_HOST_MPC,--with-mpc) \ + $(call ptx/ifdef,PTXCONF_HOST_CLOOG,--with-cloog) \ + $(call ptx/ifdef,PTXCONF_HOST_CLOOG,--with-isl) # --enable-tls enable or disable generation of tls code # overriding the assembler check for tls support -- cgit v1.2.3