diff options
author | agc <agc@pkgsrc.org> | 2004-03-11 22:57:22 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2004-03-11 22:57:22 +0000 |
commit | 530d286b2462fa560cee839e27997a604ff9b3fa (patch) | |
tree | 6487a575e148495affc227c4ac707310854371b8 /mk/bsd.pkg.mk | |
parent | ee3dc3f7eebee91d110c4b33715056997dc0dc7d (diff) | |
download | pkgsrc-530d286b2462fa560cee839e27997a604ff9b3fa.tar.gz |
Get rid of all occurrences of cpp-like tests for ${OPSYS} in
bsd.pkg.mk, and use the abstracted means of determining generic shared
lib type per operating system.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r-- | mk/bsd.pkg.mk | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 547b433de38..f2dd204a769 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1419 2004/03/11 21:19:00 tv Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1420 2004/03/11 22:57:22 agc Exp $ # # This file is in the public domain. # @@ -3073,13 +3073,7 @@ check-shlibs: show-shlib-type: . if empty(USE_LANGUAGES) ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} "none" -. elif exists(/usr/lib/libc.dylib) - ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} "dylib" -. elif ${OPSYS} == "AIX" - ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} "aixlib" -. elif ${OPSYS} == "Interix" - ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} "ELF" # not really, but acts like it -. else +. elif ${_OPSYS_SHLIB_TYPE} == "ELF/a.out" ${_PKG_SILENT}${_PKG_DEBUG} \ cd ${WRKDIR} && \ sotype=none; \ @@ -3098,6 +3092,8 @@ show-shlib-type: fi; \ ${ECHO} "$$sotype"; \ ${RM} -f a.$$$$.c a.$$$$.out +. else + ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${_OPSYS_SHLIB_TYPE} . endif # USE_LANGUAGES .endif |