make/bsd/makefiles/vm.make

Print this page
rev 7056 : imported patch zdefs


 248 
 249 vm.def: $(Res_Files) $(Obj_Files)
 250         sh $(GAMMADIR)/make/bsd/makefiles/build_vm_def.sh *.o > $@
 251 
 252 STATIC_CXX = false
 253 
 254 ifeq ($(LINK_INTO),AOUT)
 255   LIBJVM.o                 =
 256   LIBJVM_MAPFILE           =
 257   LIBS_VM                  = $(LIBS)
 258 else
 259   LIBJVM.o                 = $(JVM_OBJ_FILES)
 260   LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
 261   LFLAGS_VM$(LDNOMAP)      += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
 262   LFLAGS_VM                += $(SONAMEFLAG:SONAME=$(LIBJVM))
 263 
 264   ifeq ($(OS_VENDOR), Darwin)
 265     LFLAGS_VM += -Xlinker -rpath -Xlinker @loader_path/.
 266     LFLAGS_VM += -Xlinker -rpath -Xlinker @loader_path/..
 267     LFLAGS_VM += -Xlinker -install_name -Xlinker @rpath/$(@F)


 268   endif
 269 
 270   # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
 271   # get around library dependency and compatibility issues. Must use gcc not
 272   # g++ to link.
 273   ifeq ($(STATIC_CXX), true)
 274     LFLAGS_VM              += $(STATIC_LIBGCC)
 275     LIBS_VM                += $(STATIC_STDCXX)
 276     LINK_VM                = $(LINK_LIB.CC)
 277   else
 278     LINK_VM                = $(LINK_LIB.CXX)
 279   endif
 280 
 281   LIBS_VM                  += $(LIBS)
 282 endif
 283 ifeq ($(JVM_VARIANT_ZERO), true)
 284   LIBS_VM += $(LIBFFI_LIBS)
 285 endif
 286 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
 287   LIBS_VM   += $(LIBFFI_LIBS) $(LLVM_LIBS)




 248 
 249 vm.def: $(Res_Files) $(Obj_Files)
 250         sh $(GAMMADIR)/make/bsd/makefiles/build_vm_def.sh *.o > $@
 251 
 252 STATIC_CXX = false
 253 
 254 ifeq ($(LINK_INTO),AOUT)
 255   LIBJVM.o                 =
 256   LIBJVM_MAPFILE           =
 257   LIBS_VM                  = $(LIBS)
 258 else
 259   LIBJVM.o                 = $(JVM_OBJ_FILES)
 260   LIBJVM_MAPFILE$(LDNOMAP) = mapfile_reorder
 261   LFLAGS_VM$(LDNOMAP)      += $(MAPFLAG:FILENAME=$(LIBJVM_MAPFILE))
 262   LFLAGS_VM                += $(SONAMEFLAG:SONAME=$(LIBJVM))
 263 
 264   ifeq ($(OS_VENDOR), Darwin)
 265     LFLAGS_VM += -Xlinker -rpath -Xlinker @loader_path/.
 266     LFLAGS_VM += -Xlinker -rpath -Xlinker @loader_path/..
 267     LFLAGS_VM += -Xlinker -install_name -Xlinker @rpath/$(@F)
 268   else
 269     LFLAGS_VM                += -Wl,-z,defs
 270   endif
 271 
 272   # JVM is statically linked with libgcc[_s] and libstdc++; this is needed to
 273   # get around library dependency and compatibility issues. Must use gcc not
 274   # g++ to link.
 275   ifeq ($(STATIC_CXX), true)
 276     LFLAGS_VM              += $(STATIC_LIBGCC)
 277     LIBS_VM                += $(STATIC_STDCXX)
 278     LINK_VM                = $(LINK_LIB.CC)
 279   else
 280     LINK_VM                = $(LINK_LIB.CXX)
 281   endif
 282 
 283   LIBS_VM                  += $(LIBS)
 284 endif
 285 ifeq ($(JVM_VARIANT_ZERO), true)
 286   LIBS_VM += $(LIBFFI_LIBS)
 287 endif
 288 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
 289   LIBS_VM   += $(LIBFFI_LIBS) $(LLVM_LIBS)