From 24fbe8c9f7f59e14eec7f5b506d72b0934020f06 Mon Sep 17 00:00:00 2001 From: "Koenig, Joerg" Date: Tue, 15 Sep 2020 04:20:03 +0200 Subject: Fixed build of GCC; added symbols for libstdc++ Change-Id: I75a46fb713cc06cde888f42e129ece41a106df81 --- Makefile | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e87e0bf..240e49d 100644 --- a/Makefile +++ b/Makefile @@ -211,7 +211,7 @@ lingcc-binutils: cd $(BUILD_DIR)/binutils ;\ LDLAGS="-static-libgcc -static-libstdc++" \ $(UNPACK_DIR)/binutils-$(VERSION_BINUTILS)/configure \ - --with-pkgversion="$(GCC_PKGVERSION)" \ + --with-pkgversion=$(GCC_PKGVERSION) \ --prefix=$(INST_BASE)/gcc \ --disable-nls \ --enable-deterministic-archives \ @@ -228,7 +228,7 @@ lingcc-gcc: cd $(BUILD_DIR)/gcc && \ LDLAGS="-static-libgcc -static-libstdc++" \ $(UNPACK_DIR)/gcc-$(VERSION_GCC)/configure \ - --with-pkgversion="$(GCC_PKGVERSION)" \ + --with-pkgversion=$(GCC_PKGVERSION) \ --prefix=$(INST_BASE)/gcc \ --build=$(ARCH64) \ --host=$(ARCH64) \ @@ -236,6 +236,8 @@ lingcc-gcc: --disable-nls \ --enable-multilib \ --with-arch-32=i686 \ + --with-abi=m64 \ + --with-multilib-list=m32,m64,mx32 \ --with-tune=generic\ --enable-checking=release \ --enable-languages=$(LANGUAGES) \ @@ -245,8 +247,9 @@ lingcc-gcc: --enable-static \ --with-tune-64=core2 \ --disable-werror \ - --disable-symvers \ + --enable-symvers \ --enable-threads=posix \ + --with-default-libstdcxx-abi=new \ --disable-sjlj-exceptions \ --with-dwarf2 \ --with-arch-directory=lib64 \ @@ -327,7 +330,7 @@ xgcc-build-binutils: CFLAGS="-O2 -pipe" \ CXXFLAGS="-O2 -pipe" \ $(UNPACK_DIR)/binutils-$(VERSION_BINUTILS)/configure \ - --with-pkgversion="$(GCC_PKGVERSION)" \ + --with-pkgversion=$(GCC_PKGVERSION) \ --prefix=$(XGCC_INST_DIR) \ --disable-nls \ --enable-deterministic-archives \ @@ -407,7 +410,7 @@ xgcc-gcc-pass1: CFLAGS="-O2 -pipe" \ CXXFLAGS="-O2 -pipe" \ $(UNPACK_DIR)/gcc-$(VERSION_GCC)/configure \ - --with-pkgversion="$(GCC_PKGVERSION)" \ + --with-pkgversion=$(GCC_PKGVERSION) \ --prefix=$(XGCC_INST_DIR) \ --with-sysroot=$(XGCC_INST_DIR) \ --disable-nls \ @@ -637,7 +640,7 @@ wingcc-binutils: CC=$(XGCC64) CXX=$(XGPP64) \ LDLAGS="-static-libgcc -static-libstdc++" \ $(UNPACK_DIR)/binutils-$(VERSION_BINUTILS)/configure \ - --with-pkgversion="$(GCC_PKGVERSION)" \ + --with-pkgversion=$(GCC_PKGVERSION) \ --prefix=$(WINGCC_INST_DIR) \ --disable-nls \ --enable-deterministic-archives \ @@ -715,7 +718,7 @@ wingcc-gcc: CC=$(XGCC64) CXX=$(XGPP64) \ LDLAGS="-static-libgcc -static-libstdc++" \ $(UNPACK_DIR)/gcc-$(VERSION_GCC)/configure \ - --with-pkgversion="$(GCC_PKGVERSION)" \ + --with-pkgversion=$(GCC_PKGVERSION) \ --prefix=$(WINGCC_INST_DIR) \ --with-sysroot=$(WINGCC_INST_DIR) \ --disable-nls \ @@ -731,7 +734,7 @@ wingcc-gcc: --enable-shared \ --with-tune-64=core2 \ --disable-werror \ - --disable-symvers \ + --enable-symvers \ --enable-threads=posix \ --disable-sjlj-exceptions \ --with-dwarf2 \ -- cgit v0.12