summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2017-05-31 22:55:01 +0000
committerjlam <jlam@pkgsrc.org>2017-05-31 22:55:01 +0000
commit1736ec7d3842096a90ccd4b495c54b6112ca2a2f (patch)
tree7f75d2a479481f19d0e963e6fa99877a8233c7bc /mk/bsd.prefs.mk
parent910f60a4bf41ed4bd5967ccd747e67eaa861a064 (diff)
downloadpkgsrc-1736ec7d3842096a90ccd4b495c54b6112ca2a2f.tar.gz
Move detection of shared library type into the platform file.
Only four platforms, all BSDs, need to resolve "ELF/a.out" into either ELF or a.out. Calculate it directly in the platform file and return the value in ${_OPSYS_SHLIB_TYPE} and export that value in bsd.prefs.mk as ${SHLIB_TYPE}. Instead of requiring the file(1) tool, we can expect the base system of those BSDs to have /usr/bin/file, so make use of it directly.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 61195e890df..f8135cdb977 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.390 2017/04/16 23:12:37 khorben Exp $
+# $NetBSD: bsd.prefs.mk,v 1.391 2017/05/31 22:55:01 jlam Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -378,6 +378,9 @@ SHAREMODE?= ${DOCMODE}
PKG_FAIL_REASON+= "missing mk/platform/${OPSYS}.mk"
.endif
+# Set default SHLIB_TYPE to the ${OPSYS}-specific shared library type.
+SHLIB_TYPE?= ${_OPSYS_SHLIB_TYPE}
+
PKGDIRMODE?= 755
# A meta-package is a package that does not have any files and whose