summaryrefslogtreecommitdiff
path: root/mk/platform/Darwin.mk
diff options
context:
space:
mode:
authorjperkin <jperkin>2015-08-17 17:35:23 +0000
committerjperkin <jperkin>2015-08-17 17:35:23 +0000
commitac877b1272e758ef811043d2120c92314eda8146 (patch)
tree919760cb33f7fb2ccf8aec3d92e8257165fc25f7 /mk/platform/Darwin.mk
parente30e1f89609129d92c4444ae0a74f0c9f9706338 (diff)
downloadpkgsrc-ac877b1272e758ef811043d2120c92314eda8146.tar.gz
Introduce support for checking Mach-O dynamic libraries.
This works in a similar way to the ELF checks, but uses otool(1) to list the library name and its dependencies, and the checks fail if there are WRKDIR references or if the -install_name of the library does not match $PREFIX, as well as ensuring that any libraries from pkgsrc are correctly registered as full dependencies. Removes support for the user to set USE_CHECK_SHLIBS_ELF, but there were no reasonable reasons for doing so in the past anyway, and it may be masking issues in platform files we should fix.
Diffstat (limited to 'mk/platform/Darwin.mk')
-rw-r--r--mk/platform/Darwin.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk
index 2fa7520d33d..3354c4c8634 100644
--- a/mk/platform/Darwin.mk
+++ b/mk/platform/Darwin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.68 2015/07/01 17:47:14 tron Exp $
+# $NetBSD: Darwin.mk,v 1.69 2015/08/17 17:35:23 jperkin Exp $
#
# Variable definitions for the Darwin operating system.
@@ -139,7 +139,7 @@ _OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
.endif
-_OPSYS_CAN_CHECK_SHLIBS= no # can't use readelf in check/bsd.check-vars.mk
+_OPSYS_CAN_CHECK_SHLIBS= yes # check shared libraries using otool(1)
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-Wl,-x} # cc(1) option to strip
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip