jdk/make/Tools.gmk
changeset 32515 b6277cad1488
parent 32500 164fa1c0bad8
child 35241 075bbb8f2423
equal deleted inserted replaced
32514:ca8c1ed31e0d 32515:b6277cad1488
   157     DEST := $(BUILDTOOLS_OUTPUTDIR)/interim_jimage_classes, \
   157     DEST := $(BUILDTOOLS_OUTPUTDIR)/interim_jimage_classes, \
   158     FILES := META-INF/services/java.nio.file.spi.FileSystemProvider))
   158     FILES := META-INF/services/java.nio.file.spi.FileSystemProvider))
   159 
   159 
   160 ##########################################################################################
   160 ##########################################################################################
   161 
   161 
   162 # Tools needed on solaris because OBJCOPY is broken.
       
   163 
       
   164 ifeq ($(OPENJDK_TARGET_OS), solaris)
       
   165   $(eval $(call SetupNativeCompilation,ADD_GNU_DEBUGLINK, \
       
   166       SRC := $(JDK_TOPDIR)/make/src/native/add_gnu_debuglink, \
       
   167       TOOLCHAIN := TOOLCHAIN_BUILD, \
       
   168       LDFLAGS := -lelf, \
       
   169       OBJECT_DIR := $(BUILDTOOLS_OUTPUTDIR)/objs/add_gnu_debuglink, \
       
   170       OUTPUT_DIR := $(BUILDTOOLS_OUTPUTDIR)/bin, \
       
   171       PROGRAM := add_gnu_debuglink))
       
   172 
       
   173   $(eval $(call SetupNativeCompilation,FIX_EMPTY_SEC_HDR_FLAGS, \
       
   174       SRC := $(JDK_TOPDIR)/make/src/native/fix_empty_sec_hdr_flags, \
       
   175       TOOLCHAIN := TOOLCHAIN_BUILD, \
       
   176       LDFLAGS := -lelf, \
       
   177       OBJECT_DIR := $(BUILDTOOLS_OUTPUTDIR)/objs/fix_empty_sec_hdr_flags, \
       
   178       OUTPUT_DIR := $(BUILDTOOLS_OUTPUTDIR)/bin, \
       
   179       PROGRAM := fix_empty_sec_hdr_flags))
       
   180 
       
   181   BUILD_TOOLS_JDK += $(ADD_GNU_DEBUGLINK) $(FIX_EMPTY_SEC_HDR_FLAGS)
       
   182 endif
       
   183 
       
   184 $(BUILD_TOOLS_JDK): $(BUILD_INTERIM_JIMAGE) $(COPY_JIMAGE_SERVICE_PROVIDER)
   162 $(BUILD_TOOLS_JDK): $(BUILD_INTERIM_JIMAGE) $(COPY_JIMAGE_SERVICE_PROVIDER)
   185 
   163 
   186 java-tools: $(BUILD_TOOLS_JDK)
   164 java-tools: $(BUILD_TOOLS_JDK)
   187 
   165 
   188 all: java-tools
   166 all: java-tools