Add version information to jvmti demos. (original) (raw)

Sean Chou zhouyx at linux.vnet.ibm.com
Thu May 26 05:25:24 UTC 2011


Hi all,

I made a simple patch for bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6988099 (jvmti demos missing Publisher (COMPANY resource) in dll and exe files on windows) . Will anyone have a look at my patch ? Thanks.

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 = (EXTRALIBS)(EXTRA_LIBS) (EXTRALIBS)(LFLAGS_$(COMPILER_VERSION)) + DEMO_VERSION_INFO = (OBJDIR)/(OBJDIR)/(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" \

@@ -308,8 +316,11 @@ (OBJDIR)/(OBJDIR)/%.(OBJDIR)/(OBJECT_SUFFIX): $(DEMO_BUILD_SRCDIR)/%.cpp

Actual creation of the native shared library (C++ and C are different)

(DEMOLIBRARY):(DEMO_LIBRARY): (DEMOLIBRARY):(DEMO_FULL_OBJECTS) @$(prep-target)

-- Best Regards, Sean Chou -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20110526/2192dc50/attachment.htm>



More information about the build-dev mailing list