--- jdk/make/CompileLaunchers.gmk.orig +++ jdk/make/CompileLaunchers.gmk @@ -163,7 +163,7 @@ -DLAUNCHER_NAME='"$(LAUNCHER_NAME)"' \ -DPROGNAME='"$1"' $(DPACKAGEPATH) \ $2, \ - CFLAGS_solaris := -KPIC, \ + CFLAGS_solaris := -fPIC, \ LDFLAGS := $(LDFLAGS_JDKEXE) \ $(ORIGIN_ARG) \ $$($1_LDFLAGS), \ @@ -523,7 +523,7 @@ -DFULL, \ CFLAGS_release := -DPRODUCT, \ CFLAGS_linux := -fPIC, \ - CFLAGS_solaris := -KPIC, \ + CFLAGS_solaris := -fPIC, \ CFLAGS_macosx := -fPIC, \ MAPFILE := $(UNPACK_MAPFILE),\ LDFLAGS := $(UNPACKEXE_ZIPOBJS), \ @@ -633,7 +633,7 @@ CFLAGS := $(CFLAGS_JDKEXE) \ $(BUILD_JEXEC_INC), \ CFLAGS_linux := -fPIC, \ - CFLAGS_solaris := -KPIC, \ + CFLAGS_solaris := -fPIC, \ LDFLAGS := $(LDFLAGS_JDKEXE) \ $(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \ OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/jexec_obj, \