summaryrefslogtreecommitdiff
path: root/private/gcc-latest/gcc-latest.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'private/gcc-latest/gcc-latest.SlackBuild')
-rwxr-xr-xprivate/gcc-latest/gcc-latest.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/private/gcc-latest/gcc-latest.SlackBuild b/private/gcc-latest/gcc-latest.SlackBuild
index 3f67a91..eaa5fa8 100755
--- a/private/gcc-latest/gcc-latest.SlackBuild
+++ b/private/gcc-latest/gcc-latest.SlackBuild
@@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gcc-latest
VERSION=${VERSION:-12.2.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -108,6 +108,7 @@ find -L . \
# Smite the fixincludes:
patch -p1 --verbose -i $CWD/patches/gcc-no_fixincludes.diff
+patch -p1 --verbose -i $CWD/patches/gdc-immutable-struct.patch
mkdir ../objdir
cd ../objdir
@@ -124,7 +125,7 @@ fi
--mandir=/usr/man \
--infodir=/usr/info \
--enable-shared \
- --disable-bootstrap \
+ --enable-bootstrap \
--enable-languages=c,c++,d \
--enable-threads=posix \
--enable-checking=release \
@@ -141,11 +142,14 @@ fi
--disable-install-libiberty \
--disable-werror \
--with-gcc-major-version-only \
+ --with-gnu-ld \
--with-isl \
--program-suffix=-12 \
+ --enable-version-specific-runtime-libs \
--with-arch-directory=$LIB_ARCH \
--disable-gtktest \
--enable-clocale=gnu \
+ --enable-libphobos \
$GCC_ARCHOPTS \
--target=${TARGET} \
--build=${TARGET} \
@@ -156,13 +160,12 @@ make install-strip DESTDIR=$PKG
rm $PKG/usr/lib${LIBDIRSUFFIX}/*.la
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/gcc-12
mkdir -p $PKG/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX
-mv $PKG/usr/lib$LIBDIRSUFFIX/*-gdb.py \
+mv $PKG/usr/lib$LIBDIRSUFFIX/gcc/$TARGET/12/*-gdb.py \
$PKG/usr/share/gdb/auto-load/usr/lib$LIBDIRSUFFIX/
-mv $PKG/usr/lib${LIBDIRSUFFIX}/*.{a,o,spec,so*} \
- $PKG/usr/lib${LIBDIRSUFFIX}/gcc-12
+mv $PKG/usr/lib${LIBDIRSUFFIX}/*.so* \
+ $PKG/usr/lib$LIBDIRSUFFIX/gcc/$TARGET/12/
cd ../gcc-$VERSION