<div><br></div><div>Is there any comment ?</div><br><div class="gmail_quote">2011/5/26 Sean Chou <span dir="ltr"><<a href="mailto:zhouyx@linux.vnet.ibm.com">zhouyx@linux.vnet.ibm.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<div><br></div><div> I made a simple patch for bug <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6988099" target="_blank">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6988099</a> </div><div>(jvmti demos missing Publisher (COMPANY resource) in dll and exe files on windows) . </div>
<div> Will anyone have a look at my patch ? Thanks.</div><div><br></div><div><br></div><div><pre>diff --git make/common/Demo.gmk make/common/Demo.gmk
index a3788ae..8c43cf9 100644
--- make/common/Demo.gmk
+++ make/common/Demo.gmk
@@ -158,6 +158,7 @@ ifneq ($(strip $(DEMO_ALL_NATIVE_SOURCES)),)
# bit between them.
LINK.demo = $(LINK.c)
LDLIBS.demo = $(EXTRA_LIBS) $(LFLAGS_$(COMPILER_VERSION))
+ DEMO_VERSION_INFO = $(OBJDIR)/$(LIBRARY).res
else
ifneq ($(DEMO_NEEDS_CPP),)
LINK.demo = $(LINK.cpp)
@@ -288,6 +289,13 @@ ifndef DEMO_SKIP_SRCZIP
$(install-file)
endif
+# JDK name required here
+RC_FLAGS += /D "JDK_FNAME=$(LIBRARY).dll" \
+ /D "JDK_INTERNAL_NAME=$(LIBRARY)" \
+ /D "JDK_FTYPE=0x2L"
+
+
+
# Native library building
ifdef DEMO_LIBRARY
@@ -308,8 +316,11 @@ $(OBJDIR)/%.$(OBJECT_SUFFIX): $(DEMO_BUILD_SRCDIR)/%.cpp
# Actual creation of the native shared library (C++ and C are different)
$(DEMO_LIBRARY): $(DEMO_FULL_OBJECTS)
@$(prep-target)
+ ifeq ($(PLATFORM),windows)
+ $(RC) $(RC_FLAGS) $(CC_OBJECT_OUTPUT_FLAG)$(DEMO_VERSION_INFO) $(VERSIONINFO_RESOURCE)
+ endif
$(LINK.demo) $(SHARED_LIBRARY_FLAG) $(CC_PROGRAM_OUTPUT_FLAG)$@ \
- $(DEMO_FULL_OBJECTS) $(LDLIBS.demo)
+ $(DEMO_FULL_OBJECTS) $(LDLIBS.demo) $(DEMO_VERSION_INFO)
@$(call binary_file_verification,$@)
# Generation of any javah include file, make sure objects are dependent on it
</pre></div><div><br></div><div><br>-- <br>Best Regards,<br>Sean Chou<br><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br>Sean Chou<br><br>