Bugzilla id: 314583, removed linking of JVM to JSS library and replaced

reference to classes.zip with rt.jar.
This commit is contained in:
sandeep.konchady%sun.com 2005-11-03 00:11:59 +00:00
Родитель 301c51145b
Коммит bf76f2aab1
1 изменённых файлов: 6 добавлений и 144 удалений

Просмотреть файл

@ -86,14 +86,14 @@ endif
# set [Microsoft Windows] platforms
ifeq ($(OS_ARCH), WINNT)
JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip
JAVA_CLASSES = $(JAVA_HOME)/jre/lib/rt.jar
ifeq ($(JRE_HOME),)
JRE_HOME = $(JAVA_HOME)
JRE_CLASSES = $(JAVA_CLASSES)
else
ifeq ($(JRE_CLASSES),)
JRE_CLASSES = $(JRE_HOME)/lib/classes.zip
JRE_CLASSES = $(JRE_HOME)/lib/rt.jar
endif
endif
@ -105,18 +105,6 @@ ifeq ($(OS_ARCH), WINNT)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "linker" information
JAVA_CPU =
JAVA_LIBDIR = lib
JAVA_CLIBS =
JAVA_LIBS = -LIBPATH:$(JAVA_HOME)/$(JAVA_LIBDIR) jvm.lib
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# currently, disable JIT option on this platform
JDK_JIT_OPT = -nojit
endif
@ -142,41 +130,6 @@ ifeq ($(OS_ARCH), SunOS)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "linker" information
ifeq ($(USE_64), 1)
ifeq ($(CPU_ARCH), x86_64)
JAVA_CPU = amd64
else
JAVA_CPU := $(shell uname -p)v9
endif
else
JAVA_CPU := $(shell uname -p)
endif
ifeq ($(JDK_VERSION), 1.1)
JAVA_LIBDIR = lib/$(JAVA_CPU)
else
JAVA_LIBDIR = jre/lib/$(JAVA_CPU)
endif
# ** IMPORTANT ** having -lthread before -lnspr is critical on solaris
# when linking with -ljava as nspr redefines symbols in libthread that
# cause JNI executables to fail with assert of bad thread stack values.
JAVA_CLIBS = -lthread
ifneq ($(JDK_VERSION), 1.1)
ifeq ($(USE_64), 1)
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/server
endif
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)
JAVA_LIBS += -ljvm -ljava
else
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -ljava
endif
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# currently, disable JIT option on this platform
JDK_JIT_OPT =
endif
@ -202,24 +155,6 @@ ifeq ($(OS_ARCH), HP-UX)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "linker" information
JAVA_CPU = PA_RISC
JAVA_LIBDIR = jre/lib/$(JAVA_CPU)
JAVA_CLIBS =
JAVA_LIBS = -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -lhpi
ifeq ($(JDK_VERSION), 1.4)
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/server -ljvm
else
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm
endif
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# no JIT option available on this platform
JDK_JIT_OPT =
endif
@ -245,50 +180,20 @@ ifeq ($(OS_ARCH), Linux)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "linker" information
JAVA_CPU = i386
ifeq ($(CPU_ARCH),x86_64)
ifeq ($(USE_64), 1)
JAVA_CPU = amd64
else
JAVA_CPU = i386
endif
endif
# Sun JDK
JAVA_LIBDIR = jre/lib/$(JAVA_CPU)
# IBM JDK
IBM_JAVA_LIBDIR = jre/bin
JAVA_CLIBS =
ifeq ($(JDK_VERSION), 1.4)
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/server \
-L$(JAVA_HOME)/$(IBM_JAVA_LIBDIR)/classic \
-ljvm
endif
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) \
-L$(JAVA_HOME)/$(IBM_JAVA_LIBDIR) \
-ljava
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# no JIT option available on this platform
JDK_JIT_OPT =
endif
# set [IBM AIX] platforms
ifeq ($(OS_ARCH), AIX)
JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip
JAVA_CLASSES = $(JAVA_HOME)/jre/lib/rt.jar
ifeq ($(JRE_HOME),)
JRE_HOME = $(JAVA_HOME)
JRE_CLASSES = $(JAVA_CLASSES)
else
ifeq ($(JRE_CLASSES),)
JRE_CLASSES = $(JRE_HOME)/lib/classes.zip
JRE_CLASSES = $(JRE_HOME)/lib/rt.jar
endif
endif
@ -300,34 +205,20 @@ ifeq ($(OS_ARCH), AIX)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "linker" information
JAVA_CPU = aix
JAVA_LIBDIR = jre/bin
JAVA_CLIBS =
JAVA_LIBS = -L$(JAVA_HOME)/$(JAVA_LIBDIR) -lhpi
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# no JIT option available on this platform
JDK_JIT_OPT =
endif
# set [Digital UNIX] platforms
ifeq ($(OS_ARCH), OSF1)
JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip
JAVA_CLASSES = $(JAVA_HOME)/jre/lib/rt.jar
ifeq ($(JRE_HOME),)
JRE_HOME = $(JAVA_HOME)
JRE_CLASSES = $(JAVA_CLASSES)
else
ifeq ($(JRE_CLASSES),)
JRE_CLASSES = $(JRE_HOME)/lib/classes.zip
JRE_CLASSES = $(JRE_HOME)/lib/rt.jar
endif
endif
@ -339,20 +230,6 @@ ifeq ($(OS_ARCH), OSF1)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "linker" information
JAVA_CPU = alpha
JAVA_LIBDIR = jre/lib/$(JAVA_CPU)
JAVA_CLIBS =
JAVA_LIBS = -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -lhpi
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# no JIT option available on this platform
JDK_JIT_OPT =
endif
@ -378,21 +255,6 @@ ifeq ($(OS_ARCH), IRIX)
INCLUDES += -I$(JAVA_HOME)/include
INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)
# (3) specify "-n32 linker" information
JAVA_CPU = sgi
JAVA_LIBDIR = lib32/$(JAVA_CPU)
JAVA_CLIBS =
JAVA_LIBS = -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -lhpi
JAVA_LIBS += -lirixextra
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm
JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava
JAVA_LIBS += $(JAVA_CLIBS)
LDFLAGS += $(JAVA_LIBS)
# no JIT option available on this platform
JDK_JIT_OPT =
endif