From 22b9aae7015fb0fa6f68db4a551790a3a3cfe9ab Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Wed, 4 Sep 2019 13:42:11 +0200
Subject: [PATCH] binutils recipe: using %{prefix}
---
binutils/recipe.spec | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/binutils/recipe.spec b/binutils/recipe.spec
index 9184776..73c2b0d 100644
--- a/binutils/recipe.spec
+++ b/binutils/recipe.spec
@@ -1,6 +1,6 @@
name: binutils
version: 2.32
-release: 1
+release: 2
sources: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz
options:
- configure: --disable-multilib --with-pic --disable-nls
@@ -8,5 +8,6 @@ options:
- make: tooldir=/usr
@install
- cd binutils-%{version} && make 'DESTDIR=%{pkg}' tooldir=/usr install && rm '%{pkg}/usr/bin/strings'
-
+ cd binutils-%{version}
+ make 'DESTDIR=%{pkg}' tooldir=/usr install
+ rm '%{pkg}/%{prefix}/bin/strings'