diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-07 14:02:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-07 14:03:23 +0000 |
commit | 58a5aac536c752d7c0a69250dfeeebf5d9bceade (patch) | |
tree | e5f62e6abe645ce302f6088e076b7b78a2a8d3dc /community/openjdk8/build-demo-ldflags.patch | |
parent | f9916072fe1c7a0e0e4526431839aa9032fe1a8f (diff) | |
download | aports-58a5aac536c752d7c0a69250dfeeebf5d9bceade.tar.bz2 aports-58a5aac536c752d7c0a69250dfeeebf5d9bceade.tar.xz |
community/openjdk8: moved from testing
Diffstat (limited to 'community/openjdk8/build-demo-ldflags.patch')
-rw-r--r-- | community/openjdk8/build-demo-ldflags.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/openjdk8/build-demo-ldflags.patch b/community/openjdk8/build-demo-ldflags.patch new file mode 100644 index 0000000000..ded0f11c8b --- /dev/null +++ b/community/openjdk8/build-demo-ldflags.patch @@ -0,0 +1,21 @@ +our LDFLAGS has -Wl,-z,relro but the commas are expanded too early in makefile. + +--- ./jdk/make/CompileDemos.gmk.orig ++++ ./jdk/make/CompileDemos.gmk +@@ -245,13 +245,15 @@ + BUILD_DEMO_JVMTI_$1_CFLAGS := $(CFLAGS_JDKLIB) $(CFLAGS_DEBUG_SYMBOLS) \ + -I$(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_INC) $3 + ++ BUILD_DEMO_JVMTI_$1_LDFLAGS := $(filter-out -incremental:no -opt:ref,$(LDFLAGS_JDKLIB)) ++ + # Remove the -incremental:no setting to get .ilk-files like in the old build. + $$(eval $$(call SetupNativeCompilation,BUILD_DEMO_JVMTI_$1, \ + SRC := $(JDK_TOPDIR)/src/share/demo/jvmti/$1 $$(BUILD_DEMO_JVMTI_$1_EXTRA_SRC), \ + LANG := $$(BUILD_DEMO_JVMTI_$1_LANG), \ + OPTIMIZATION := LOW, \ + CXXFLAGS := $$($1_CXXFLAGS), \ +- LDFLAGS := $(filter-out -incremental:no -opt:ref, $(LDFLAGS_JDKLIB)), \ ++ LDFLAGS := $$(BUILD_DEMO_JVMTI_$1_LDFLAGS), \ + LDFLAGS_macosx := $(call SET_EXECUTABLE_ORIGIN), \ + LDFLAGS_SUFFIX := $$($1_EXTRA_CXX), \ + LDFLAGS_SUFFIX_posix := $5, \ |