CFLAGS := $(patsubst -mtune=%,,$(CFLAGS))
CFLAGS := $(patsubst -mfloat-abi=%,,$(CFLAGS))
+# https://bugzilla.redhat.com/show_bug.cgi?id=476370
+CFLAGS += -fgnu89-inline
+
# Normal build or /tools build.
#
ifeq "$(ROOT)" ""
EXTRA_MAKE =
EXTRA_INSTALL =
endif
+
+ # Disable stack protection in toolchain.
+ CFLAGS += -fno-stack-protector
endif
ifeq "$(MACHINE_TYPE)" "arm"
--with-tune=generic
endif
+ifeq "$(MACHINE)" "x86_64"
+ EXTRA_CONFIG += \
+ --disable-multilib
+endif
+
EXTRA_CONFIG += \
--with-bugurl=http://bugtracker.ipfire.org \
--disable-libunwind-exceptions \
cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/gcc/gcc44-rh610785.patch
cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/gcc/gcc44-unwind-debug-hook.patch
+ # texinfo 5 syntax-fixes
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/gcc-4.4.7-texinfo-5.patch
+
ifneq "$(ROOT)" ""
# Build gmp and mpfr internally in toolchain.
cd $(DIR_APP) && tar xfa $(DIR_DL)/gmp-$(GMP_VER).tar.bz2