Archived
3
0

Fixed lib64 directory in gcc’s recipe.

This commit is contained in:
Luka Vandervelden 2019-08-21 23:06:34 +02:00
parent 7c6ec81cd2
commit 4f92f0f2f7

View File

@ -1,6 +1,6 @@
name: gcc name: gcc
version: 9.1.0 version: 9.1.0
release: 1 release: 2
sources: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz sources: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
dependencies: dependencies:
- gmp - gmp
@ -10,9 +10,12 @@ dependencies:
dirname: build dirname: build
@configure @configure
set -e; set -e
mkdir %{dirname}; mkdir %{dirname}
cd %{dirname}; cd %{dirname}
sed -e '/m64=/s/lib64/lib/' -i.orig ../gcc-%{version}/gcc/config/i386/t-linux64; if [ "$(uname -m)" = x86_64 ]; then :
../gcc-%{version}/%{name} --prefix=/usr --libdir=/usr/lib --disable-multilib --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --disable-nls --disable-werror --enable-languages=c,c++ --target=x86_64-junk-linux-musl --%{dirname}=x86_64-junk-linux-musl --host=x86_64-junk-linux-musl sed -e '/m64=/s/lib64/lib/' ../gcc-%{version}/gcc/config/i386/t-linux64 > tmp
mv tmp ../gcc-%{version}/gcc/config/i386/t-linux64
fi
../gcc-%{version}/configure --prefix=/usr --libdir=/usr/lib --disable-multilib --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --disable-nls --disable-werror --enable-languages=c,c++ --target=x86_64-junk-linux-musl --%{dirname}=x86_64-junk-linux-musl --host=x86_64-junk-linux-musl