gcc 13.1.0: don't enable default ssp or pie and remove libssp_nonshared.patch

This commit is contained in:
Paul Dersey 2023-07-12 20:36:32 -04:00
parent 46d80b8605
commit 184535e2df
4 changed files with 2 additions and 47 deletions

View file

@ -14,19 +14,11 @@ src_configure() {
src_compile() {
make "${MAKEJOBS}" CROSS_COMPILE=
# Provide libssp_nonshared.a to avoid GCC's messy libssp
# (Taken from Alpine Linux)
gcc -c __stack_chk_fail_local.c -o __stack_chk_fail_local.o
ar r libssp_nonshared.a __stack_chk_fail_local.o
}
src_install() {
default
# Install libssp_nonshared.a
install -m 644 libssp_nonshared.a "${DESTDIR}${PREFIX}/lib/"
# Make dynamic linker symlink relative in ${PREFIX}/lib
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
rmdir "${DESTDIR}/lib"