ports/java/jdk15/files/patch-j2se::instrument::Makefile
Greg Lewis 5817b9bf96 . Link with the system libz instead of building the our own internal
copy.  This should have the following effects:

  . Fix problems experienced by programmes that dynamically create their
    own copy of the JVM and are linked against the system's zlib (e.g.,
    eclipse).
  . Reduce the potential for zlib based security problems affecting the
    JDK.

Submitted by:	mi@
2006-01-28 23:41:24 +00:00

48 lines
1.3 KiB
Text

$FreeBSD$
--- ../../j2se/make/java/instrument/Makefile.orig Thu Jan 13 02:04:44 2005
+++ ../../j2se/make/java/instrument/Makefile Thu Jan 13 02:05:03 2005
@@ -39,5 +39,4 @@
# into the instrument library.
#
-ZIP_SRC = $(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
IO_PLATFORM_SRC = $(PLATFORM_SRC)/native/java/io
LAUNCHER_SHARE_SRC = $(SHARE_SRC)/bin
@@ -45,12 +44,4 @@
FILES_c += \
- inflate.c \
- infblock.c \
- infcodes.c \
- inffast.c \
- inftrees.c \
- zadler32.c \
- infutil.c \
- zutil.c \
canonicalize_md.c \
parse_manifest.c
@@ -61,5 +60,4 @@
OTHER_INCLUDES = -I$(SHARE_SRC)/instrument
OTHER_INCLUDES += -I$(PLATFORM_SRC)/instrument
-OTHER_INCLUDES += -I$(ZIP_SRC)
OTHER_INCLUDES += -I$(IO_PLATFORM_SRC)
OTHER_INCLUDES += -I$(LAUNCHER_SHARE_SRC) -I$(LAUNCHER_PLATFORM_SRC)
@@ -71,9 +61,10 @@
COMPILER_WARNING_LEVEL=0
else
+OTHER_LDLIBS += -lz
ifeq ($(PLATFORM), bsd)
ifneq ($(TRUE_PLATFORM), NetBSD)
- OTHER_INCLUDES += -I/usr/local/include
- OTHER_LDLIBS += -L/usr/local/lib -liconv
+ OTHER_INCLUDES += -I${LOCALBASE}/include
+ OTHER_LDLIBS += -L${LOCALBASE}/lib -liconv
endif
else
OTHER_LDLIBS = -lnsl -ldl
@@ -123,5 +121,4 @@
#
vpath %.c $(SHARE_SRC)/instrument $(PLATFORM_SRC)/instrument
-vpath %.c $(ZIP_SRC)
vpath %.c $(IO_PLATFORM_SRC)
vpath %.c $(LAUNCHER_SHARE_SRC) $(LAUNCHER_PLATFORM_SRC)