# HG changeset patch # User John Donoghue # Date 1520889346 14400 # Node ID b864dc772f157dacc1bce6a7eff91da6d9e46900 # Parent b8385340a96a3cbce4aaf6b4fb0e3bd88d0d00fc gcc: remove multilib references * src/build-binutils.mk: remove win64 multilib options * src/build-gcc.mk: refactor cross build configure options where common * src/native-binutils.mk: remove win64 enable multilib * src/native-gcc.mk: refect options where common for cross build diff -r b8385340a96a -r b864dc772f15 src/build-binutils.mk --- a/src/build-binutils.mk Sat Mar 10 16:35:15 2018 -0500 +++ b/src/build-binutils.mk Mon Mar 12 17:15:46 2018 -0400 @@ -12,17 +12,10 @@ $(PKG)_DEPS := ifneq ($(MXE_NATIVE_BUILD),yes) -ifneq ($(ENABLE_WINDOWS_64),yes) - define $(PKG)_POST_BUILD - $(INSTALL) -d '$(3)/$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)' - mv $(addprefix $(3)/$(HOST_PREFIX)/bin/, ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip) '$(3)/$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)' - endef -else define $(PKG)_POST_BUILD rm $(addprefix $(3)/$(HOST_PREFIX)/bin/, ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip) endef endif -endif define $(PKG)_UPDATE $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ @@ -37,18 +30,9 @@ $(PKG)_SYSDEP_CONFIGURE_OPTIONS := \ --target='$(TARGET)' \ --build='$(BUILD_SYSTEM)' \ - - ifeq ($(ENABLE_WINDOWS_64),yes) - $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ - --enable-multilib \ - --with-sysroot='$(BUILD_TOOLS_PREFIX)' \ - --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 - else - $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ - --libdir='$(BUILD_TOOLS_PREFIX)/lib' \ - --disable-multilib \ - --with-sysroot='$(HOST_PREFIX)' - endif + --libdir='$(BUILD_TOOLS_PREFIX)/lib' \ + --disable-multilib \ + --with-sysroot='$(HOST_PREFIX)' endif define $(PKG)_BUILD diff -r b8385340a96a -r b864dc772f15 src/build-gcc.mk --- a/src/build-gcc.mk Sat Mar 10 16:35:15 2018 -0500 +++ b/src/build-gcc.mk Mon Mar 12 17:15:46 2018 -0400 @@ -36,7 +36,7 @@ $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ --libdir='$(BUILD_TOOLS_PREFIX)/lib' \ --with-native-system-header-dir='/include' \ - --disable-sjlj-exceptions + --disable-sjlj-exceptions else define $(PKG)_PRE_BUILD echo "Shortcuts" @@ -97,15 +97,12 @@ --build='$(BUILD_SYSTEM)' \ --with-as='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-as' \ --with-ld='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-ld' \ - --with-nm='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-nm' + --with-nm='$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)-nm' \ + --disable-multilib --with-host-libstdcxx="-lstdc++" --with-system-zlib ifeq ($(ENABLE_WINDOWS_64),yes) - $(PKG)_SYSDEP_CONFIGURE_OPTIONS += --with-sysroot='$(BUILD_TOOLS_PREFIX)' \ - --disable-multilib --with-host-libstdcxx="-lstdc++" --with-system-zlib \ + $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ --enable-64bit --enable-fully-dynamic-string - else - $(PKG)_SYSDEP_CONFIGURE_OPTIONS += --with-sysroot='$(HOST_PREFIX)' \ - --disable-multilib endif else $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ diff -r b8385340a96a -r b864dc772f15 src/native-binutils.mk --- a/src/native-binutils.mk Sat Mar 10 16:35:15 2018 -0500 +++ b/src/native-binutils.mk Mon Mar 12 17:15:46 2018 -0400 @@ -12,12 +12,6 @@ $(PKG)_DEPS := $(PKG)_SYSDEP_OPTIONS := -ifeq ($(ENABLE_WINDOWS_64),yes) - $(PKG)_SYSDEP_OPTIONS += \ - --enable-multilib \ - --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 -endif - define $(PKG)_UPDATE $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ diff -r b8385340a96a -r b864dc772f15 src/native-gcc.mk --- a/src/native-gcc.mk Sat Mar 10 16:35:15 2018 -0500 +++ b/src/native-gcc.mk Mon Mar 12 17:15:46 2018 -0400 @@ -25,15 +25,15 @@ --without-x \ --disable-win32-registry \ --with-native-system-header-dir='$(HOST_PREFIX)/include' \ - --enable-threads=posix + --enable-threads=posix \ + --disable-multilib + ifneq ($(ENABLE_WINDOWS_64),yes) $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ - $(ENABLE_SHARED_OR_STATIC) \ - --disable-multilib \ --disable-sjlj-exceptions else $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ - --enable-multilib --enable-64bit --disable-shared + --enable-64bit endif else $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \