diff options
author | jperkin <jperkin@pkgsrc.org> | 2013-03-01 16:58:51 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2013-03-01 16:58:51 +0000 |
commit | 74887d2d51fb567ba5e4dccdbdc3baba63fc2596 (patch) | |
tree | 0394fa6dc721de8e979033bc8c41e50c196ac5b9 /mk | |
parent | 5c9f5e6d01c60c0345b4b22692f850a7a9aff444 (diff) | |
download | pkgsrc-74887d2d51fb567ba5e4dccdbdc3baba63fc2596.tar.gz |
Enable check-shlibs if the user supplies a working readelf, e.g. from binutils.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/SunOS.mk | 13 |
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. |