summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/libcap/files/2.06/0005-Do-not-hard-code-toolchain-binaries.patch')
-rw-r--r--sys-libs/libcap/files/2.06/0005-Do-not-hard-code-toolchain-binaries.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/sys-libs/libcap/files/2.06/0005-Do-not-hard-code-toolchain-binaries.patch b/sys-libs/libcap/files/2.06/0005-Do-not-hard-code-toolchain-binaries.patch
deleted file mode 100644
index d9431f9d6e53..000000000000
--- a/sys-libs/libcap/files/2.06/0005-Do-not-hard-code-toolchain-binaries.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From adf5e017030a62ea4cab21067b52ee1d336da222 Mon Sep 17 00:00:00 2001
-From: Mike Frysinger <vapier@gentoo.org>
-Date: Sat, 16 Feb 2008 16:25:28 -0500
-Subject: [PATCH] Do not hard code toolchain binaries
-
-If you are cross-compiling, you cannot execute `ar` and `ranlib` on the
-target library, otherwise things may break. Here we create standard AR
-and RANLIB variables which can easily be overridden by the environment.
-
-Signed-off-by: Mike Frysinger <vapier@gentoo.org>
----
- Make.Rules | 4 +++-
- libcap/Makefile | 4 ++--
- 2 files changed, 5 insertions(+), 3 deletions(-)
-
-diff --git a/Make.Rules b/Make.Rules
-index 9bccbb7..3f38e72 100644
---- a/Make.Rules
-+++ b/Make.Rules
-@@ -42,7 +42,9 @@ MINOR=06
-
- # Compilation specifics
-
--CC=gcc
-+CC ?= gcc
-+AR ?= ar
-+RANLIB ?= ranlib
- COPTFLAGS=-O2
- DEBUG=-O2 -g #-DDEBUG
- WARNINGS=-fPIC -Wall -Wwrite-strings \
-diff --git a/libcap/Makefile b/libcap/Makefile
-index b108aa9..09a12d2 100644
---- a/libcap/Makefile
-+++ b/libcap/Makefile
-@@ -40,8 +40,8 @@ cap_names.sed: Makefile $(KERNEL_HEADERS)/linux/capability.h
- @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define \([^ \t]*\)[ \t]*\([^ \t]*\)/\{\"\1\",\2\},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < $(KERNEL_HEADERS)/linux/capability.h | fgrep -v 0x > $@
-
- $(STALIBNAME): $(OBJS)
-- ar rcs $(STALIBNAME) $(OBJS)
-- ranlib $(STALIBNAME)
-+ $(AR) rcs $(STALIBNAME) $(OBJS)
-+ $(RANLIB) $(STALIBNAME)
-
- $(MINLIBNAME): $(OBJS)
- $(LD) $(LDFLAGS) $(COPTFLAG) -Wl,-soname,$(MAJLIBNAME) -o $@ $(OBJS)
---
-1.5.4
-