1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-05 03:27:10 +01:00

Enable stack protection flags in GCC cross compiler

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-10-08 22:05:04 +02:00
parent f1be060f7c
commit 2a1add41e7
5 changed files with 12 additions and 8 deletions

View file

@ -5,7 +5,7 @@ MUSL_CPU="i386"
CPU_IS_64BIT="no"
GCC_EXTRACFG="--disable-libmpx --disable-libssp"
GCC_EXTRACFG="--enable-libmpx"
LINUXPKG="linux"
LINUX_CPU="x86"

View file

@ -5,7 +5,7 @@ MUSL_CPU="x86_64"
CPU_IS_64BIT="yes"
GCC_EXTRACFG=""
GCC_EXTRACFG="--enable-libmpx"
LINUXPKG="linux"
LINUX_CPU="x86_64"

View file

@ -12,7 +12,7 @@ prepare() {
build() {
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
--with-sysroot="$TCDIR/$TARGET" --disable-multilib \
--with-lib-path="$TCDIR/$TARGET/lib"
--with-lib-path="$TCDIR/$TARGET/lib" --enable-libssp
make configure-host
make -j $NUMJOBS
@ -26,4 +26,4 @@ check_update() {
curl --silent -L "$URL" | grep -o ">binutils-[0-9.]*tar.xz<" | \
sed 's/>binutils-//g' | sed 's/.tar.xz<//g' | \
verson_find_greatest "$VERSION"
}
}

View file

@ -8,9 +8,10 @@ build() {
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --enable-languages=c,c++ \
--enable-c99 --enable-long-long \
--disable-libmudflap --disable-multilib \
--disable-libmpx --disable-libssp \
--enable-libmudflap --disable-multilib \
--enable-libssp \
--disable-libsanitizer \
--enable-default-pie --enable-default-ssp \
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
--with-native-system-header-dir="/include"

View file

@ -1,14 +1,17 @@
lib/libatomic.so m 777 0 0
lib/libatomic.so.1 m 777 0 0
lib/libatomic.so.1.2.0 m 555 0 0
lib/libgcc_s.so m 444 0 0
lib/libgcc_s.so.1 m 444 0 0
lib/libgcc_s.so m 555 0 0
lib/libgcc_s.so.1 m 555 0 0
lib/libgomp.so m 777 0 0
lib/libgomp.so.1 m 777 0 0
lib/libgomp.so.1.0.0 m 555 0 0
lib/libitm.so m 777 0 0
lib/libitm.so.1 m 777 0 0
lib/libitm.so.1.0.0 m 555 0 0
lib/libssp.so m 777 0 0
lib/libssp.so.0 m 777 0 0
lib/libssp.so.0.0.0 m 555 0 0
lib/libstdc++.so m 777 0 0
lib/libstdc++.so.6 m 777 0 0
lib/libstdc++.so.6.0.25 m 555 0 0