summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-12-17 08:40:44 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-05-16 12:37:18 +0200
commit1e79e1a91181384f6047823a438f31ef54ce4bdb (patch)
tree2de30d2124a4365ecf837275a16787d39659deba
parent5dfe9f67d99a26e53d7fe3d1c811bb36bba925dc (diff)
downloadOSELAS.Toolchain-1e79e1a91181384f6047823a438f31ef54ce4bdb.tar.gz
cross-gcc: use ptx/ifdef
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/cross-gcc.make24
1 files 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