jdk/make/common/shared/Defs-solaris.gmk
changeset 8008 753c38f4af83
parent 7665 bc5dbdc44e1e
child 8796 604a43386301
equal deleted inserted replaced
7683:aa894c225b1a 8008:753c38f4af83
   184 else
   184 else
   185   HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
   185   HOTSPOT_SERVER_PATH   =$(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/server
   186 endif
   186 endif
   187 HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
   187 HOTSPOT_SERVER_PATH:=$(call AltCheckValue,HOTSPOT_SERVER_PATH)
   188 
   188 
       
   189 # Special define for checking the binaries
       
   190 
       
   191 # Macro to check it's input file for banned dependencies and verify the
       
   192 #   binary built properly. Relies on process exit code.
       
   193 define binary_file_verification # binary_file
       
   194 ( \
       
   195   $(ECHO) "Checking for mapfile use in: $1" && \
       
   196   if [ "`$(NM) -g -D $1 | $(EGREP) -v 'UNDEF' | $(EGREP) 'SUNWprivate'`" = "" ] ; then \
       
   197     $(ECHO) "WARNING: File was not built with a mapfile: $1"; \
       
   198   fi && \
       
   199   $(ECHO) "Library loads for: $1" && \
       
   200   $(LDD) $1 && \
       
   201   $(ECHO) "RUNPATH for: $1" && \
       
   202   ( $(DUMP) -L -v $1 | $(EGREP) 'NEEDED|RUNPATH|RPATH' ) \
       
   203 )
       
   204 endef
       
   205