--with-sysroot=$(ROOT) \
--with-local-prefix=$(TOOLS_DIR) \
--with-native-system-header-dir=$(TOOLS_DIR)/include \
+ --with-glibc-version=2.11 \
--disable-nls \
--disable-shared \
+ --disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
RANLIB="$(CROSSTARGET)-ranlib"
EXTRA_CONFIG = \
--build=$(BUILDTARGET) \
+ --host=$(BUILDTARGET) \
--prefix=$(TOOLS_DIR) \
--with-local-prefix=$(TOOLS_DIR) \
--with-native-system-header-dir=$(TOOLS_DIR)/include \
--enable-languages=c,c++ \
--disable-libstdcxx-pch \
+ --disable-multilib \
--disable-libgomp
EXTRA_MAKE =
EXTRA_INSTALL =
ifeq "$(BUILD_ARCH)" "armv6l"
EXTRA_CONFIG += \
- --with-arch=armv6 \
+ --with-arch=armv6zk+fp \
--with-float=softfp
# --disable-sjlj-exceptions
endif
-ifeq "$(BUILD_ARCH)" "i586"
- EXTRA_CONFIG += \
- --with-arch=i586 \
- --with-tune=generic
-endif
-
ifeq "$(BUILD_ARCH)" "riscv64"
EXTRA_CONFIG += \
--with-arch=rv64gc \
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) $(DIR_SRC)/gcc-build && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/gcc/gcc.git-745dae5-remove_cyclades.patch
+
+
@mkdir $(DIR_SRC)/gcc-build
cd $(DIR_APP) && sed -i 's/install_to_$$(INSTALL_DEST) //' libiberty/Makefile.in
$(EXTRA_ENV) \
$(DIR_APP)/configure \
$(EXTRA_CONFIG)
- cd $(DIR_SRC)/gcc-build && make $(EXTRA_MAKE)
+ cd $(DIR_SRC)/gcc-build && make $(EXTRA_MAKE) $(MAKETUNING)
cd $(DIR_SRC)/gcc-build && make $(EXTRA_INSTALL) install
endif