changeset 3759:d8a5a62e4ad1

. Add the missing define and endef lines for binary_file_verification on MacOS X. . Pull in the latest change to that definition from the MacOS X repo. [2] Obtained from: Mike Swingler <swingler@apple.com> [2]
author Greg Lewis <glewis@eyesbeyond.com>
date Tue, 08 Mar 2011 23:32:36 -0800
parents 472f6c7fbb52
children 213d508b85cc
files make/common/shared/Defs-bsd.gmk
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/shared/Defs-bsd.gmk	Tue Mar 08 11:50:58 2011 -0800
+++ b/make/common/shared/Defs-bsd.gmk	Tue Mar 08 23:32:36 2011 -0800
@@ -178,6 +178,7 @@
 # Macro to check it's input file for banned dependencies and verify the
 #   binary built properly. Relies on process exit code.
 ifeq ($(OS_VENDOR), Apple)
+define binary_file_verification # binary_file
 ( \
   $(ECHO) "Checking for mapfile use in: $1" && \
   if [ "`$(NM) -g $1 | $(EGREP) 'SUNWprivate'`" = "" ] ; then \
@@ -187,7 +188,8 @@
   $(OTOOL) -L $1 && \
   $(ECHO) "RUNPATH for: $1" && \
   ( $(OTOOL) -l $1 | $(EGREP) 'path ' ) \
-)
+) || true
+endef
 else
 define binary_file_verification # binary_file
 ( \