Add additional build fixes for aarch64
This commit is contained in:
parent
4c3b526060
commit
f9aa0aa4f8
470
8011366-root.patch
Normal file
470
8011366-root.patch
Normal file
@ -0,0 +1,470 @@
|
||||
# HG changeset patch
|
||||
# User andrew
|
||||
# Date 1367683497 -3600
|
||||
# Sat May 04 17:04:57 2013 +0100
|
||||
# Node ID 88125d32eb06dd38c4ca3752c7e8143e477df58e
|
||||
# Parent 8dbb4b159e04de3c447c9242c70505e71f8624c7
|
||||
8011366: Enable debug info on all libraries for OpenJDK builds
|
||||
Summary: The build should not be turning off debugging if it has been requested.
|
||||
Reviewed-by: erikj, dholmes
|
||||
|
||||
diff --git a/makefiles/CompileNativeLibraries.gmk b/makefiles/CompileNativeLibraries.gmk
|
||||
--- openjdk/makefiles/CompileNativeLibraries.gmk
|
||||
+++ openjdk/makefiles/CompileNativeLibraries.gmk
|
||||
@@ -63,7 +63,12 @@
|
||||
# Use this variable to set DEBUG_SYMBOLS true on windows for all libraries, but
|
||||
# not on other platforms.
|
||||
ifeq ($(OPENJDK_TARGET_OS), windows)
|
||||
- WINDOWS_ONLY := true
|
||||
+ DEBUG_ALL_BINARIES := true
|
||||
+endif
|
||||
+
|
||||
+# Build everything with debugging on OpenJDK
|
||||
+ifdef OPENJDK
|
||||
+ DEBUG_ALL_BINARIES := true
|
||||
endif
|
||||
|
||||
#
|
||||
@@ -91,7 +96,8 @@
|
||||
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\
|
||||
CFLAGS_windows_debug:=-DLOGGING,\
|
||||
ARFLAGS:=$(ARFLAGS),\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
else
|
||||
|
||||
@@ -105,7 +111,8 @@
|
||||
CFLAGS:=$(CFLAGS_JDKLIB) \
|
||||
-I$(JDK_TOPDIR)/src/share/native/java/lang/fdlibm/include,\
|
||||
LDFLAGS:=-nostdlib -r -arch x86_64,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfdlibm,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBFDLIBM := $(JDK_OUTPUTDIR)/objs/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX)
|
||||
$(BUILD_LIBFDLIBM) : $(BUILD_LIBFDLIBM_MAC)
|
||||
@@ -257,7 +264,7 @@
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
REORDER:=$(LIBJAVA_REORDER), \
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjava,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -308,7 +315,7 @@
|
||||
-D "JDK_INTERNAL_NAME=mlib_image" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBMLIB_IMAGE) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -431,7 +438,8 @@
|
||||
$(BUILD_LIBMLIB_LDLIBS) -ljava -ljvm \
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN),\
|
||||
LDFLAGS_SUFFIX_solaris:=-lc,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image_v))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libmlib_image_v,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBMLIB_IMAGE_V): $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -739,7 +747,7 @@
|
||||
-D "JDK_INTERNAL_NAME=awt" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBAWT) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -895,7 +903,8 @@
|
||||
-D "JDK_FNAME=xawt.dll" \
|
||||
-D "JDK_INTERNAL_NAME=xawt" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_xawt))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_xawt,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBAWT_XAWT) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -956,7 +965,7 @@
|
||||
-D "JDK_INTERNAL_NAME=zip" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libzip,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBZIP) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -986,7 +995,7 @@
|
||||
-D "JDK_FNAME=unpack.dll" \
|
||||
-D "JDK_INTERNAL_NAME=unpack" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBUNPACK) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -1100,7 +1109,7 @@
|
||||
-D "JDK_INTERNAL_NAME=dt_shmem" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdt_shmem,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBDT_SHMEM)
|
||||
|
||||
@@ -1134,7 +1143,7 @@
|
||||
-D "JDK_INTERNAL_NAME=jdwp" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjdwp,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJDWP) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -1175,7 +1184,7 @@
|
||||
-D "JDK_INTERNAL_NAME=$(LIBJAAS_NAME)" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjaas,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJAAS) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -1240,7 +1249,7 @@
|
||||
-D "JDK_INTERNAL_NAME=lcms" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/liblcms,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBLCMS)
|
||||
|
||||
@@ -1300,7 +1309,7 @@
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
REORDER:=$(BUILD_LIBJPEG_REORDER),\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjpeg,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJPEG) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -1377,7 +1386,7 @@
|
||||
-D "JDK_INTERNAL_NAME=fontmanager" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libfontmanager,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBFONTMANAGER) : $(BUILD_LIBAWT)
|
||||
|
||||
@@ -1434,7 +1443,7 @@
|
||||
-D "JDK_INTERNAL_NAME=t2k" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libt2k,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
# t2k is linked against fontmanager
|
||||
$(BUILD_LIBT2K) : $(BUILD_LIBFONTMANAGER)
|
||||
@@ -1472,7 +1481,7 @@
|
||||
-D "JDK_INTERNAL_NAME=jawt" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT)
|
||||
|
||||
@@ -1521,7 +1530,8 @@
|
||||
LDFLAGS_SUFFIX_solaris:=$(JAWT_LIBS) $(LDFLAGS_JDKLIB_SUFFIX) -lXrender,\
|
||||
LDFLAGS_SUFFIX_macosx:=-Xlinker -rpath -Xlinker @loader_path $(JAWT_LIBS) \
|
||||
-framework Cocoa $(LDFLAGS_JDKLIB_SUFFIX),\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjawt,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
ifndef BUILD_HEADLESS_ONLY
|
||||
$(BUILD_LIBJAWT) : $(BUILD_LIBAWT_XAWT)
|
||||
@@ -1828,7 +1838,7 @@
|
||||
-D "JDK_INTERNAL_NAME=net" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnet,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBNET) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -1965,7 +1975,7 @@
|
||||
-D "JDK_INTERNAL_NAME=nio" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libnio,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBNIO)
|
||||
|
||||
@@ -2002,7 +2012,8 @@
|
||||
LDFLAGS_SUFFIX_posix:=-lnio -lnet,\
|
||||
LDFLAGS_SUFFIX_solaris:=-lsocket -ljava -ljvm -lc,\
|
||||
LDFLAGS_SUFFIX_macosx:=-ljava -ljvm,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsctp,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBSCTP)
|
||||
|
||||
@@ -2126,7 +2137,7 @@
|
||||
-D "JDK_INTERNAL_NAME=jli" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJLI)
|
||||
|
||||
@@ -2143,7 +2154,8 @@
|
||||
OPTIMIZATION:=HIGH, \
|
||||
CFLAGS:=$(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS),\
|
||||
ARFLAGS:=$(ARFLAGS),\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJLI_STATIC)
|
||||
|
||||
@@ -2161,7 +2173,8 @@
|
||||
OPTIMIZATION:=HIGH, \
|
||||
CFLAGS:=$(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS),\
|
||||
LDFLAGS:=-nostdlib -r,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjli_static,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(JDK_OUTPUTDIR)/objs/libjli_static.a : $(BUILD_LIBJLI_STATIC)
|
||||
$(call install-file)
|
||||
@@ -2192,7 +2205,7 @@
|
||||
-D "JDK_INTERNAL_NAME=jfr" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjfr,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJFR)
|
||||
|
||||
@@ -2244,7 +2257,7 @@
|
||||
-D "JDK_INTERNAL_NAME=kcms" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkcms,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBKCMS) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -2279,7 +2292,8 @@
|
||||
LDFLAGS:=$(LDFLAGS_JDKLIB) \
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN), \
|
||||
LDFLAGS_SUFFIX:=-L$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -R$(OPENWIN_LIB)$(OPENJDK_TARGET_CPU_ISADIR) -ldga -lX11 $(LIBDL) -lc, \
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunwjdga,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBSUNWJDGA)
|
||||
|
||||
@@ -2369,7 +2383,8 @@
|
||||
LDFLAGS_SUFFIX_linux:=-ljvm -lawt -lm $(LIBDL) -ljava,\
|
||||
LDFLAGS_SUFFIX_solaris:=$(LIBDL) -ljvm -lawt -lm -ljava $(LIBCXX) -lc,\
|
||||
LDFLAGS_SUFFIX_macosx:=-ljvm $(LIBCXX) -lawt $(LIBDL) -ljava,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_headless,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBAWT_HEADLESS) : $(BUILD_LIBAWT)
|
||||
|
||||
@@ -2462,7 +2477,7 @@
|
||||
-D "JDK_INTERNAL_NAME=splashscreen" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsplashscreen,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(LIBSPLASHSCREEN)
|
||||
|
||||
@@ -2504,7 +2519,7 @@
|
||||
-D "JDK_INTERNAL_NAME=dcpr" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libdcpr,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBDCPR) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -2538,7 +2553,7 @@
|
||||
-D "JDK_INTERNAL_NAME=j2pcsc" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC)
|
||||
|
||||
@@ -2561,7 +2576,8 @@
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN),\
|
||||
LDFLAGS_SUFFIX:=$(LIBDL),\
|
||||
LDFLAGS_SUFFIX_solaris:=-lc,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS)
|
||||
endif
|
||||
@@ -2601,7 +2617,7 @@
|
||||
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libkrb5,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBKRB5)
|
||||
endif
|
||||
@@ -2627,7 +2643,7 @@
|
||||
-D "JDK_INTERNAL_NAME=sunmscapi" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunmscapi,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI)
|
||||
endif
|
||||
@@ -2659,7 +2675,7 @@
|
||||
-D "JDK_INTERNAL_NAME=j2pkcs11" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pkcs11,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11)
|
||||
|
||||
@@ -2705,7 +2721,7 @@
|
||||
-D "JDK_INTERNAL_NAME=sunec" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libsunec,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBSUNEC)
|
||||
endif
|
||||
@@ -2849,7 +2865,7 @@
|
||||
-D "JDK_INTERNAL_NAME=jsound" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsound,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJSOUND) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -2884,7 +2900,8 @@
|
||||
LDFLAGS:=$(LDFLAGS_JDKLIB)\
|
||||
$(call SET_SHARED_LIBRARY_ORIGIN),\
|
||||
LDFLAGS_SUFFIX:=-lasound -ljava -ljvm,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundalsa,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJSOUNDALSA) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -2917,7 +2934,7 @@
|
||||
-D "JDK_INTERNAL_NAME=jsoundds" \
|
||||
-D "JDK_FTYPE=0x2L",\
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjsoundds,\
|
||||
- DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJSOUNDDS) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -2942,7 +2959,8 @@
|
||||
LDFLAGS:=$(LDFLAGS_JDKLIB),\
|
||||
LDFLAGS_SUFFIX:=$(LIBDL),\
|
||||
LDFLAGS_SUFFIX_solaris:=-lc,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2ucrypto,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBJ2UCRYPTO) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -2972,7 +2990,8 @@
|
||||
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \
|
||||
-framework JavaNativeFoundation \
|
||||
$(LDFLAGS_JDKLIB_SUFFIX),\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libAppleScriptEngine,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(BUILD_LIBAPPLESCRIPTENGINE) : $(BUILD_LIBJAVA)
|
||||
|
||||
@@ -3011,7 +3030,8 @@
|
||||
-framework OpenGL \
|
||||
-framework IOSurface \
|
||||
-framework QuartzCore, \
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxapp,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBOSXAPP)
|
||||
|
||||
@@ -3051,7 +3071,8 @@
|
||||
-framework Security \
|
||||
-framework SystemConfiguration \
|
||||
$(LDFLAGS_JDKLIB_SUFFIX), \
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosx,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBOSX)
|
||||
|
||||
@@ -3184,7 +3205,8 @@
|
||||
-framework JavaRuntimeSupport \
|
||||
-framework OpenGL \
|
||||
-framework QuartzCore -ljava,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libawt_lwawt,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBAWT_LWAWT)
|
||||
|
||||
@@ -3224,7 +3246,8 @@
|
||||
-framework JavaNativeFoundation \
|
||||
-framework JavaRuntimeSupport \
|
||||
-ljava -ljvm,\
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libosxui,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
BUILD_LIBRARIES += $(BUILD_LIBOSXUI)
|
||||
|
||||
@@ -3264,7 +3287,8 @@
|
||||
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \
|
||||
-framework JavaNativeFoundation \
|
||||
-lffi, \
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc32,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(eval $(call SetupNativeCompilation,BUILD_LIBJOBJC64,\
|
||||
LIBRARY:=JObjC,\
|
||||
@@ -3288,7 +3312,8 @@
|
||||
-F/System/Library/Frameworks/JavaVM.framework/Frameworks \
|
||||
-framework JavaNativeFoundation \
|
||||
-lffi, \
|
||||
- OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64))
|
||||
+ OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libjobjc64,\
|
||||
+ DEBUG_SYMBOLS:=$(DEBUG_ALL_BINARIES)))
|
||||
|
||||
$(INSTALL_LIBRARIES_HERE)/$(LIBRARY_PREFIX)JObjC$(SHARED_LIBRARY_SUFFIX): $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64)
|
||||
$(LIPO) -create -output $@ $(BUILD_LIBJOBJC32) $(BUILD_LIBJOBJC64)
|
29
8015087-jdk.patch
Normal file
29
8015087-jdk.patch
Normal file
@ -0,0 +1,29 @@
|
||||
# HG changeset patch
|
||||
# User andrew
|
||||
# Date 1369226882 -3600
|
||||
# Wed May 22 13:48:02 2013 +0100
|
||||
# Node ID f559fadbf49130bcb703fa7af38070a74887a6f5
|
||||
# Parent b61632814be29cb9cf7fb5fe817a6e45c5729835
|
||||
8015087: Provide debugging information for programs
|
||||
Summary: Add missing debug info to unpack200 and jexec
|
||||
Reviewed-by: erikj
|
||||
|
||||
diff --git a/makefiles/CompileLaunchers.gmk b/makefiles/CompileLaunchers.gmk
|
||||
--- openjdk/jdk/makefiles/CompileLaunchers.gmk
|
||||
+++ openjdk/jdk/makefiles/CompileLaunchers.gmk
|
||||
@@ -472,6 +472,7 @@
|
||||
-D "JDK_FNAME=unpack200.exe" \
|
||||
-D "JDK_INTERNAL_NAME=unpack200" \
|
||||
-D "JDK_FTYPE=0x1L",\
|
||||
+ DEBUG_SYMBOLS:=true,\
|
||||
MANIFEST:=$(JDK_TOPDIR)/src/windows/resource/unpack200_proto.exe.manifest))
|
||||
|
||||
ifeq ($(OPENJDK_TARGET_OS),windows)
|
||||
@@ -555,6 +556,7 @@
|
||||
$(call SET_SHARED_LIBRARY_NAME,$(LIBRARY_PREFIX)$(SHARED_LIBRARY_SUFFIX)), \
|
||||
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/jexec_obj,\
|
||||
OUTPUT_DIR:=$(BUILD_JEXEC_DST_DIR),\
|
||||
+ DEBUG_SYMBOLS:=true,\
|
||||
PROGRAM:=jexec))
|
||||
|
||||
BUILD_LAUNCHERS += $(BUILD_JEXEC)
|
34
8015087-root.patch
Normal file
34
8015087-root.patch
Normal file
@ -0,0 +1,34 @@
|
||||
# HG changeset patch
|
||||
# User andrew
|
||||
# Date 1369226952 -3600
|
||||
# Wed May 22 13:49:12 2013 +0100
|
||||
# Node ID cb51fb4789ac0b8be4056482077ddfb8f3bd3805
|
||||
# Parent e83abb0a04ab6ad0ea32e0fcdb2d1e74df858687
|
||||
8015087: Provide debugging information for programs
|
||||
Summary: Enable debugging info on programs in OpenJDK builds
|
||||
Reviewed-by: erikj
|
||||
|
||||
diff --git a/common/makefiles/NativeCompilation.gmk b/common/makefiles/NativeCompilation.gmk
|
||||
--- openjdk/common/makefiles/NativeCompilation.gmk
|
||||
+++ openjdk/common/makefiles/NativeCompilation.gmk
|
||||
@@ -321,11 +321,17 @@
|
||||
|
||||
ifneq (,$$($1_DEBUG_SYMBOLS))
|
||||
ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
|
||||
- # Programs don't get the debug symbols added in the old build. It's not clear if
|
||||
- # this is intentional.
|
||||
- ifeq ($$($1_PROGRAM),)
|
||||
+ ifdef OPENJDK
|
||||
+ # Always add debug symbols
|
||||
$1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
|
||||
$1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
|
||||
+ else
|
||||
+ # Programs don't get the debug symbols added in the old build. It's not clear if
|
||||
+ # this is intentional.
|
||||
+ ifeq ($$($1_PROGRAM),)
|
||||
+ $1_EXTRA_CFLAGS+=$(CFLAGS_DEBUG_SYMBOLS)
|
||||
+ $1_EXTRA_CXXFLAGS+=$(CXXFLAGS_DEBUG_SYMBOLS)
|
||||
+ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
@ -215,6 +215,15 @@ Patch2031: system-lcmsAARCH64.patch
|
||||
Patch301: removeMswitchesFromx11.patch
|
||||
Patch302: %{name}-arm64-missing-includes.patch
|
||||
|
||||
# These patches are already upstream but not included in the port yet
|
||||
# http://hg.openjdk.java.net/jdk8/build/jdk/rev/88125d32eb06
|
||||
Patch303: 8011366-root.patch
|
||||
# http://hg.openjdk.java.net/jdk8/build/jdk/rev/f559fadbf491
|
||||
Patch304: 8015087-jdk.patch
|
||||
# http://hg.openjdk.java.net/jdk8/build/rev/cb51fb4789ac
|
||||
Patch305: 8015087-root.patch
|
||||
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: alsa-lib-devel
|
||||
@ -410,6 +419,12 @@ pushd jdk8/hotspot >& /dev/null
|
||||
%patch302 -p1
|
||||
popd >& /dev/null
|
||||
|
||||
pushd jdk8
|
||||
%patch303 -p1
|
||||
%patch304 -p1
|
||||
%patch305 -p1
|
||||
popd
|
||||
|
||||
%endif
|
||||
|
||||
# Extract systemtap tapsets
|
||||
@ -461,6 +476,7 @@ bash ../../configure \
|
||||
--with-jvm-variants=client \
|
||||
--disable-precompiled-headers \
|
||||
%endif
|
||||
--disable-zip-debug-info \
|
||||
--with-build-number=%{buildver} \
|
||||
--with-boot-jdk=/usr/lib/jvm/java-openjdk \
|
||||
--with-debug-level=%{debugbuild} \
|
||||
@ -951,6 +967,9 @@ exit 0
|
||||
%doc %{buildoutputdir}/images/j2sdk-image/jre/LICENSE
|
||||
|
||||
%changelog
|
||||
* Mon Aug 05 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.16.b89x
|
||||
- Added additional build fixes for aarch64
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.8.0.0-0.16.b89x
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user