< prev index next >

hotspot/make/lib/CompileLibjsig.gmk

Print this page




  62 
  63     else ifeq ($(OPENJDK_TARGET_OS), aix)
  64       LIBJSIG_CFLAGS := -q64 -D_GNU_SOURCE -D_REENTRANT -qpic=large
  65       LIBJSIG_LDFLAGS := -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath -bernotok
  66       LIBJSIG_LIBS := $(LIBDL)
  67 
  68       # NOTE: The old build compiled this library without -soname.
  69       # To emulate this, we need to clear out SET_SHARED_LIBRARY_NAME.
  70       SET_SHARED_LIBRARY_NAME :=
  71 
  72     else ifeq ($(OPENJDK_TARGET_OS), macosx)
  73       LIBJSIG_CFLAGS := -m64 -D_GNU_SOURCE -pthread -mno-omit-leaf-frame-pointer -mstack-alignment=16 -fPIC
  74       LIBJSIG_LDFLAGS := $(LDFLAGS_HASH_STYLE)
  75       # NOTE: This lib is not stripped on macosx in old build. Looks like a mistake.
  76       LIBJSIG_STRIP_SYMBOLS := false
  77     else
  78       $(error Unknown target OS $(OPENJDK_TARGET_OS) in CompileLibjsig.gmk)
  79     endif
  80 
  81     LIBJSIG_SRC_FILE := $(HOTSPOT_TOPDIR)/src/os/$(HOTSPOT_TARGET_OS)/vm/jsig.c
  82     LIBJSIG_MAPFILE := $(wildcard $(HOTSPOT_TOPDIR)/makefiles/mapfiles/libjsig/mapfile-vers-$(OPENJDK_TARGET_OS))
  83     LIBJSIG_OUTPUTDIR := $(HOTSPOT_OUTPUTDIR)/libjsig
  84 
  85     LIBJSIG_LDFLAGS += $(SHARED_LIBRARY_FLAGS)
  86 
  87     $(eval $(call SetupNativeCompilation, BUILD_LIBJSIG, \
  88         LIBRARY := jsig, \
  89         EXTRA_FILES := $(LIBJSIG_SRC_FILE), \
  90         OUTPUT_DIR := $(LIBJSIG_OUTPUTDIR), \
  91         LANG := C, \
  92         CFLAGS := $(LIBJSIG_CFLAGS) $(LIBJSIG_CPU_FLAGS), \
  93         LDFLAGS := $(LIBJSIG_LDFLAGS) $(LIBJSIG_CPU_FLAGS), \
  94         LIBS := $(LIBJSIG_LIBS), \
  95         MAPFILE := $(LIBJSIG_MAPFILE), \
  96         OBJECT_DIR := $(LIBJSIG_OUTPUTDIR)/objs, \
  97         STRIP_SYMBOLS := $(LIBJSIG_STRIP_SYMBOLS), \
  98     ))
  99 
 100     TARGETS += $(BUILD_LIBJSIG)
 101   endif
 102 endif


  62 
  63     else ifeq ($(OPENJDK_TARGET_OS), aix)
  64       LIBJSIG_CFLAGS := -q64 -D_GNU_SOURCE -D_REENTRANT -qpic=large
  65       LIBJSIG_LDFLAGS := -b64 -bexpall -G -bnoentry -qmkshrobj -brtl -bnolibpath -bernotok
  66       LIBJSIG_LIBS := $(LIBDL)
  67 
  68       # NOTE: The old build compiled this library without -soname.
  69       # To emulate this, we need to clear out SET_SHARED_LIBRARY_NAME.
  70       SET_SHARED_LIBRARY_NAME :=
  71 
  72     else ifeq ($(OPENJDK_TARGET_OS), macosx)
  73       LIBJSIG_CFLAGS := -m64 -D_GNU_SOURCE -pthread -mno-omit-leaf-frame-pointer -mstack-alignment=16 -fPIC
  74       LIBJSIG_LDFLAGS := $(LDFLAGS_HASH_STYLE)
  75       # NOTE: This lib is not stripped on macosx in old build. Looks like a mistake.
  76       LIBJSIG_STRIP_SYMBOLS := false
  77     else
  78       $(error Unknown target OS $(OPENJDK_TARGET_OS) in CompileLibjsig.gmk)
  79     endif
  80 
  81     LIBJSIG_SRC_FILE := $(HOTSPOT_TOPDIR)/src/os/$(HOTSPOT_TARGET_OS)/vm/jsig.c
  82     LIBJSIG_MAPFILE := $(wildcard $(HOTSPOT_TOPDIR)/make/mapfiles/libjsig/mapfile-vers-$(OPENJDK_TARGET_OS))
  83     LIBJSIG_OUTPUTDIR := $(HOTSPOT_OUTPUTDIR)/libjsig
  84 
  85     LIBJSIG_LDFLAGS += $(SHARED_LIBRARY_FLAGS)
  86 
  87     $(eval $(call SetupNativeCompilation, BUILD_LIBJSIG, \
  88         LIBRARY := jsig, \
  89         EXTRA_FILES := $(LIBJSIG_SRC_FILE), \
  90         OUTPUT_DIR := $(LIBJSIG_OUTPUTDIR), \
  91         LANG := C, \
  92         CFLAGS := $(LIBJSIG_CFLAGS) $(LIBJSIG_CPU_FLAGS), \
  93         LDFLAGS := $(LIBJSIG_LDFLAGS) $(LIBJSIG_CPU_FLAGS), \
  94         LIBS := $(LIBJSIG_LIBS), \
  95         MAPFILE := $(LIBJSIG_MAPFILE), \
  96         OBJECT_DIR := $(LIBJSIG_OUTPUTDIR)/objs, \
  97         STRIP_SYMBOLS := $(LIBJSIG_STRIP_SYMBOLS), \
  98     ))
  99 
 100     TARGETS += $(BUILD_LIBJSIG)
 101   endif
 102 endif
< prev index next >