diff options
author | jperkin <jperkin@pkgsrc.org> | 2015-08-17 17:35:23 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2015-08-17 17:35:23 +0000 |
commit | 26b4a8ca3328bde29b5b20789fc8f41b3680a19a (patch) | |
tree | 919760cb33f7fb2ccf8aec3d92e8257165fc25f7 /mk/platform | |
parent | feac269ad0c68877eeb61245c485df4b7a0b138f (diff) | |
download | pkgsrc-26b4a8ca3328bde29b5b20789fc8f41b3680a19a.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')
-rw-r--r-- | mk/platform/Darwin.mk | 4 |
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 |