diff options
author | danw <danw> | 2003-09-14 16:41:30 +0000 |
---|---|---|
committer | danw <danw> | 2003-09-14 16:41:30 +0000 |
commit | e904a4283d33472be3fea84f44909c6a56260844 (patch) | |
tree | 21ba52826e1e9a0eaa98309ad06acc165e1094a0 /mk | |
parent | 3c52e64d2ff22cecb46ff20f4440597e987df2bd (diff) | |
download | pkgsrc-e904a4283d33472be3fea84f44909c6a56260844.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; \ |