gcc: patch out __gnu_linux__ for ppc*-musl

This macro should not be defined on non-glibc systems. It's not
defined on non-glibc systems on other architectures and has been
removed upstream, too.

[ci skip]
This commit is contained in:
q66 2019-05-05 21:37:54 +02:00 committed by Jürgen Buchmüller
parent 1bb728058d
commit 1ade549bd3

View file

@ -163,6 +163,12 @@ pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) patch -p1 -i ${FILESDIR}/libgnarl-musl.patch ;;
esac
# REMOVE WITH 9.1
case "$XBPS_TARGET_MACHINE" in
ppc*-musl)
sed -i 's/ \-D__gnu_linux__//' gcc/config/rs6000/sysv4.h
;;
esac
}
do_configure() {
local _langs _args _hash