diff options
author | sandeep.konchady%sun.com <devnull@localhost> | 2005-11-03 00:11:59 +0000 |
---|---|---|
committer | sandeep.konchady%sun.com <devnull@localhost> | 2005-11-03 00:11:59 +0000 |
commit | 9a4ca85fa3584243f2184c588599d9feeccbd4ac (patch) | |
tree | 2e902e48e53bd04c5ddb46459311396f5676aa6b | |
parent | b639dd69b8dacae80084ced4719d15838d1e8dc6 (diff) | |
download | nss-hg-9a4ca85fa3584243f2184c588599d9feeccbd4ac.tar.gz |
Bugzilla id: 314583, removed linking of JVM to JSS library and replaced
reference to classes.zip with rt.jar.
-rw-r--r-- | security/coreconf/jdk.mk | 150 |
1 files changed, 6 insertions, 144 deletions
diff --git a/security/coreconf/jdk.mk b/security/coreconf/jdk.mk index aa985cb61..2bc7336e1 100644 --- a/security/coreconf/jdk.mk +++ b/security/coreconf/jdk.mk @@ -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 |