Wed Oct 1 08:59:33 2014 UTC ()
Fix the readelf environment variable.


(jperkin)
diff -r1.8 -r1.9 pkgsrc/mk/check/check-shlibs-elf.awk

cvs diff -r1.8 -r1.9 pkgsrc/mk/check/check-shlibs-elf.awk (expand / switch to unified diff)

--- pkgsrc/mk/check/check-shlibs-elf.awk 2014/09/07 21:53:41 1.8
+++ pkgsrc/mk/check/check-shlibs-elf.awk 2014/10/01 08:59:33 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: check-shlibs-elf.awk,v 1.8 2014/09/07 21:53:41 jperkin Exp $ 1# $NetBSD: check-shlibs-elf.awk,v 1.9 2014/10/01 08:59:33 jperkin Exp $
2# 2#
3# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. 3# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# This code was developed as part of Google's Summer of Code 2007 program. 6# This code was developed as part of Google's Summer of Code 2007 program.
7# 7#
8# Redistribution and use in source and binary forms, with or without 8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions 9# modification, are permitted provided that the following conditions
10# are met: 10# are met:
11# 11#
12# 1. Redistributions of source code must retain the above copyright 12# 1. Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer. 13# notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright 14# 2. Redistributions in binary form must reproduce the above copyright
@@ -135,22 +135,22 @@ function checkshlib(DSO, needed, rpath,  @@ -135,22 +135,22 @@ function checkshlib(DSO, needed, rpath,
135 } 135 }
136 } 136 }
137 if (found == 0) 137 if (found == 0)
138 print DSO ": missing library: " lib; 138 print DSO ": missing library: " lib;
139 } 139 }
140 delete rpath 140 delete rpath
141 delete needed 141 delete needed
142} 142}
143 143
144BEGIN { 144BEGIN {
145 system_rpath = ENVIRON["PLATFORM_RPATH"] 145 system_rpath = ENVIRON["PLATFORM_RPATH"]
146 cross_destdir = ENVIRON["CROSS_DESTDIR"] 146 cross_destdir = ENVIRON["CROSS_DESTDIR"]
147 destdir = ENVIRON["DESTDIR"] 147 destdir = ENVIRON["DESTDIR"]
148 readelf = ENVIRON["PLATFORM_READELF"] 148 readelf = ENVIRON["READELF"]
149 wrkdir = ENVIRON["WRKDIR"] 149 wrkdir = ENVIRON["WRKDIR"]
150 pkg_info_cmd = ENVIRON["PKG_INFO_CMD"] 150 pkg_info_cmd = ENVIRON["PKG_INFO_CMD"]
151 depends_file = ENVIRON["DEPENDS_FILE"] 151 depends_file = ENVIRON["DEPENDS_FILE"]
152 if (readelf == "") 152 if (readelf == "")
153 readelf = "readelf" 153 readelf = "readelf"
154} 154}
155 155
156{ checkshlib($0); } 156{ checkshlib($0); }