From 4f92f0f2f70011e32112ce5c5bc5f5d7412ca5c2 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Wed, 21 Aug 2019 23:06:34 +0200 Subject: [PATCH] =?UTF-8?q?Fixed=20lib64=20directory=20in=20gcc=E2=80=99s?= =?UTF-8?q?=20recipe.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcc/recipe.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/gcc/recipe.spec b/gcc/recipe.spec index ca2b1cf..9280fbe 100644 --- a/gcc/recipe.spec +++ b/gcc/recipe.spec @@ -1,6 +1,6 @@ name: gcc version: 9.1.0 -release: 1 +release: 2 sources: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz dependencies: - gmp @@ -10,9 +10,12 @@ dependencies: dirname: build @configure - set -e; - mkdir %{dirname}; - cd %{dirname}; - sed -e '/m64=/s/lib64/lib/' -i.orig ../gcc-%{version}/gcc/config/i386/t-linux64; - ../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 + set -e + mkdir %{dirname} + cd %{dirname} + if [ "$(uname -m)" = x86_64 ]; then : + 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