aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew G Morgan <morgan@kernel.org>2013-12-24 10:08:05 -0800
committerAndrew G Morgan <morgan@kernel.org>2013-12-24 10:08:05 -0800
commit93308182d4a8837adddb803cde4f7efda37d6273 (patch)
treea998a3c99c6d74894a9cd13d69605af13eabdae6
parentaed54a828a374a357847bc33b60488b402999c29 (diff)
downloadlibcap-93308182d4a8837adddb803cde4f7efda37d6273.tar.gz
Add support for power-pc build.
Patch contributed by Ivan Kabaivanov. Signed-off-by: Andrew G Morgan <morgan@kernel.org>
-rw-r--r--Make.Rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/Make.Rules b/Make.Rules
index eea456d..b8f1629 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -7,13 +7,13 @@
FAKEROOT=$(DESTDIR)
# Autoconf-style prefixes are activated when $(prefix) is defined.
-# Otherwise binaries and libraraies are installed in /{lib,sbin}/,
+# Otherwise binaries and libraries are installed in /{lib,sbin}/,
# header files in /usr/include/ and documentation in /usr/man/man?/.
# These choices are motivated by the fact that getcap and setcap are
# administrative operations that could be needed to recover a system.
ifndef lib
-lib=$(shell ldd /usr/bin/ld|fgrep ld-linux|cut -d/ -f2)
+lib=$(shell ldd /usr/bin/ld|egrep "ld-linux|ld.so"|cut -d/ -f2)
endif
ifdef prefix