Blame SOURCES/8146566.patch

8ba7a7
diff -r 3bde96c2f7f5 make/CompileDemos.gmk
8ba7a7
--- openjdk.orig/jdk/make/CompileDemos.gmk	Tue Jan 12 11:47:16 2016 +0000
8ba7a7
+++ openjdk/jdk/make/CompileDemos.gmk	Tue Jan 12 15:47:25 2016 +0000
8ba7a7
@@ -229,7 +229,7 @@
8ba7a7
     BUILD_DEMO_JVMTI_$1_LANG := $4
8ba7a7
   endif
8ba7a7
   ifeq (C++, $4)
8ba7a7
-    $1_EXTRA_CXX := $(LDFLAGS_CXX_JDK) $(LIBCXX)
8ba7a7
+    $1_EXTRA_CXX := $$(LDFLAGS_CXX_JDK) $(LIBCXX)
8ba7a7
   endif
8ba7a7
 
8ba7a7
   $1_CXXFLAGS := $(CXXFLAGS_JDKLIB) -I$(JDK_TOPDIR)/src/share/demo/jvmti/$1 \
8ba7a7
@@ -251,8 +251,8 @@
8ba7a7
       LANG := $$(BUILD_DEMO_JVMTI_$1_LANG), \
8ba7a7
       OPTIMIZATION := LOW, \
8ba7a7
       CXXFLAGS := $$($1_CXXFLAGS), \
8ba7a7
-      LDFLAGS := $(filter-out -incremental:no -opt:ref, $(LDFLAGS_JDKLIB)), \
8ba7a7
-      LDFLAGS_macosx := $(call SET_EXECUTABLE_ORIGIN), \
8ba7a7
+      LDFLAGS := $(filter-out -incremental:no -opt:ref, $$(LDFLAGS_JDKLIB)), \
8ba7a7
+      LDFLAGS_macosx := $$(call SET_EXECUTABLE_ORIGIN), \
8ba7a7
       LDFLAGS_SUFFIX := $$($1_EXTRA_CXX), \
8ba7a7
       LDFLAGS_SUFFIX_posix := $5, \
8ba7a7
       LDFLAGS_SUFFIX_windows := $6, \