diff options
author | danw <danw@pkgsrc.org> | 2003-09-14 16:41:30 +0000 |
---|---|---|
committer | danw <danw@pkgsrc.org> | 2003-09-14 16:41:30 +0000 |
commit | ff2172dab34298825042d409dfa313c03cd1e84a (patch) | |
tree | 21ba52826e1e9a0eaa98309ad06acc165e1094a0 /mk | |
parent | 7fa2565590c6db8685a21628e29e2b85de83ddd3 (diff) | |
download | pkgsrc-ff2172dab34298825042d409dfa313c03cd1e84a.tar.gz |
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"
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 7 |
1 files changed, 5 insertions, 2 deletions
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; \ |