From: Michael Tremer Date: Sat, 16 Jul 2011 14:03:14 +0000 (+0200) Subject: gcc: Make cloog-ppl feature optional for gcc build. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0d77f5d9dbda65c3bb3913ce8935515a01ff662;p=ipfire-3.x.git gcc: Make cloog-ppl feature optional for gcc build. This was needed because the is a circular dependency between cloog-ppl, ppl and gcc. You cannot rebuild cloog with a recent version of ppl because an older version of ppl is needed to run gcc. --- diff --git a/pkgs/gcc/gcc.nm b/pkgs/gcc/gcc.nm index 74ccde382..36cf73bb5 100644 --- a/pkgs/gcc/gcc.nm +++ b/pkgs/gcc/gcc.nm @@ -24,9 +24,11 @@ include $(PKGROOT)/Include +BUILD_CLOOG_PPL= 1 + PKG_NAME = gcc PKG_VER = 4.6.1 -PKG_REL = 2 +PKG_REL = 3 PKG_MAINTAINER = Michael Tremer PKG_GROUPS = Development/Compilers @@ -41,10 +43,27 @@ endef BINUTILS_VER = 2.21.51.0.8-1 -PKG_BUILD_DEPS+= autogen binutils>=$(BINUTILS_VER) cloog-ppl-devel dejagnu \ - elfutils-devel expect flex gmp-devel libffi-devel libmpc-devel mpfr-devel \ - ppl-devel texinfo zlib-devel -PKG_DEPS-gcc += binutils>=$(BINUTILS_VER) libgcc-devel cloog-ppl>=0.15 +PKG_BUILD_DEPS+= \ + autogen \ + binutils>=$(BINUTILS_VER) \ + dejagnu \ + elfutils-devel \ + expect \ + flex \ + gmp-devel \ + libffi-devel \ + mpc-devel \ + mpfr-devel \ + texinfo \ + zlib-devel + +PKG_DEPS-gcc += binutils>=$(BINUTILS_VER) libgcc-devel + +ifeq "$(BUILD_CLOOG_PPL)" "1" + PKG_BUILD_DEPS += cloog-ppl-devel ppl-devel + PKG_DEPS-gcc += cloog-ppl>=0.15 + CONFIGURE_ARGS += --with-cloog --with-ppl +endif # Make the GCC target platform GCC_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE)) @@ -219,8 +238,6 @@ define STAGE_BUILD --disable-static \ --with-system-zlib \ --with-bugurl=http://bugtracker.ipfire.org \ - --with-ppl \ - --with-cloog \ --disable-libunwind-exceptions \ --enable-gnu-unique-object \ --enable-linker-build-id \