mirror of
https://codeberg.org/kiss-community/repo
synced 2024-08-27 16:26:18 +00:00
44 lines
953 B
Bash
Executable File
44 lines
953 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Build must happen outside of gcc source.
|
|
mkdir -p gcc-build
|
|
cd gcc-build
|
|
|
|
export libat_cv_have_ifunc=no
|
|
machine=$(gcc -dumpmachine)
|
|
|
|
../gcc/configure \
|
|
--prefix=/usr \
|
|
--disable-multilib \
|
|
--disable-symvers \
|
|
--disable-libmpx \
|
|
--disable-libmudflap \
|
|
--disable-libsanitizer \
|
|
--disable-nls \
|
|
--disable-werror \
|
|
--disable-fixed-point \
|
|
--disable-libstdcxx-pch \
|
|
--enable-checking=release \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--with-system-zlib \
|
|
--enable-__cxa_atexit \
|
|
--enable-default-pie \
|
|
--enable-default-ssp \
|
|
--enable-shared \
|
|
--enable-threads \
|
|
--enable-tls \
|
|
--enable-languages=c,c++ \
|
|
--build="$machine" \
|
|
--target="$machine" \
|
|
--host="$machine"
|
|
|
|
make BOOT_CFLAGS='-O'
|
|
make DESTDIR="$1" install
|
|
|
|
# Remove all info files.
|
|
rm -rf "$1/usr/share/info"
|
|
|
|
# Some legacy programs will expect cc
|
|
ln -s gcc "$1/usr/bin/cc"
|