From ff2172dab34298825042d409dfa313c03cd1e84a Mon Sep 17 00:00:00 2001 From: danw Date: Sun, 14 Sep 2003 16:41:30 +0000 Subject: do-shlib-handling fix for Darwin: check if the ".so" file actually exists before renaming it to ".dylib" in the PLIST, since if it's a dynamic module, it actually will be a ".so" --- mk/bsd.pkg.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index b001eb7f652..4674075aa74 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1283 2003/09/14 15:32:30 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1284 2003/09/14 16:41:30 danw Exp $ # # This file is in the public domain. # @@ -2761,8 +2761,11 @@ do-shlib-handling: next \ } \ /.*\/lib[^\/]+\.so$$/ { \ - libtool_release($$0); \ lines[NR] = $$0; \ + if (system("${TEST} -e ${PREFIX}/" $$0) == 0) { \ + next; \ + } \ + libtool_release($$0); \ links[linkc++] = $$0; \ if (sub("-[^-]+\.so$$", "\.so")) { \ links[linkc++] = $$0; \ -- cgit v1.2.3