summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-10-25 14:11:13 +0000
committerjoerg <joerg@pkgsrc.org>2013-10-25 14:11:13 +0000
commitd4f126065717498ad48c13ea1a76570af7e675b5 (patch)
treea50c96e64443f260604a23886415d1cb4110f170 /mk
parent90c1b25ba5735fc856ccfc50a144d67c4b575d92 (diff)
downloadpkgsrc-d4f126065717498ad48c13ea1a76570af7e675b5.tar.gz
Some Linux systems now use DT_RUNPATH, so match it here as well.
Diffstat (limited to 'mk')
-rw-r--r--mk/check/check-shlibs-elf.awk12
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/check/check-shlibs-elf.awk b/mk/check/check-shlibs-elf.awk
index fe2ab1cc053..f73e4b98258 100644
--- a/mk/check/check-shlibs-elf.awk
+++ b/mk/check/check-shlibs-elf.awk
@@ -1,4 +1,4 @@
-# $NetBSD: check-shlibs-elf.awk,v 1.5 2012/06/16 11:58:07 obache Exp $
+# $NetBSD: check-shlibs-elf.awk,v 1.6 2013/10/25 14:11:13 joerg Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -31,9 +31,9 @@
#
# Read a list of potential ELF binaries from stdin.
-# For each, extract the DT_RPATH and DT_NEEDED fields.
-# Check that DT_RPATH is not relative to WRKDIR.
-# Check that DT_NEEDED can be resolved either via DT_RPATH
+# For each, extract the DT_RPATH, DT_RUNPATH and DT_NEEDED fields.
+# Check that DT_RPATH and DT_RUNPATH is not relative to WRKDIR.
+# Check that DT_NEEDED can be resolved either via DT_RPATH, DT_RUNPATH
# or a system specific default path.
# Check that the resolved DSO belongs to full dependency.
#
@@ -99,8 +99,8 @@ function check_pkg(DSO, pkg, found) {
function checkshlib(DSO, needed, rpath, found, dso_rath, got_rpath) {
cmd = readelf " -Wd " shquote(DSO) " 2> /dev/null"
while ((cmd | getline) > 0) {
- if ($2 == "(RPATH)") {
- sub("^[[:space:]]*0[xX][[:xdigit:]]+[[:space:]]+\\(RPATH\\)[[:space:]]+Library rpath: \\[", "")
+ if ($2 == "(RPATH)" || $2 == "(RUNPATH)") {
+ sub("^[[:space:]]*0[xX][[:xdigit:]]+[[:space:]]+\\(RU?N?PATH\\)[[:space:]]+Library ru?n?path: \\[", "")
dso_rpath = substr($0, 1, length($0) - 1)
if (length(system_rpath) > 0)
split(dso_rpath ":" system_rpath, rpath, ":")