summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-03-01 16:58:51 +0000
committerjperkin <jperkin>2013-03-01 16:58:51 +0000
commit189a7356f5a4831c465c6698258d39f3f0d053a2 (patch)
tree0394fa6dc721de8e979033bc8c41e50c196ac5b9 /mk/platform
parenteaf8c42b9bd6e34d12238a86302d32297c99575b (diff)
downloadpkgsrc-189a7356f5a4831c465c6698258d39f3f0d053a2.tar.gz
Enable check-shlibs if the user supplies a working readelf, e.g. from binutils.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/SunOS.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
index 3700d6d216a..399c98498b8 100644
--- a/mk/platform/SunOS.mk
+++ b/mk/platform/SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.48 2013/02/01 12:36:06 hans Exp $
+# $NetBSD: SunOS.mk,v 1.49 2013/03/01 16:58:51 jperkin Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -76,11 +76,18 @@ _STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
-.if (${MACHINE_ARCH} == "x86_64")
+.if ${MACHINE_ARCH} == "x86_64"
LIBABISUFFIX= /amd64
+_OPSYS_SYSTEM_RPATH?= /lib/64:/usr/lib/64
+.else
+_OPSYS_SYSTEM_RPATH?= /lib:/usr/lib
.endif
-_OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk
+# Enable shlibs checks if readelf is set, not available by default.
+_OPSYS_CAN_CHECK_SHLIBS= no
+.if !empty(TOOLS_PATH.readelf)
+_OPSYS_CAN_CHECK_SHLIBS= yes
+.endif
# check for maximum command line length and set it in configure's environment,
# to avoid a test required by the libtool script that takes forever.