ports/java/jattach/files/patch-Makefile
Tobias Kortkamp d6be98f021 New port: java/jattach
The utility to send commands to remote JVM via Dynamic Attach mechanism.
All-in-one jmap + jstack + jcmd + jinfo functionality in a single tiny program.
No installed JDK required, works with just JRE.

This is the lightweight native version of HotSpot Attach API
https://docs.oracle.com/javase/8/docs/jdk/api/attach/spec/

WWW: https://github.com/apangin/jattach

PR:		222660
Submitted by:	Michael Zhilin <mizhka@gmail.com>
2017-10-27 15:52:10 +00:00

21 lines
523 B
Text

--- Makefile.orig 2017-09-27 07:10:05 UTC
+++ Makefile
@@ -2,6 +2,10 @@ ifneq ($(findstring Windows,$(OS)),)
CL=cl.exe
CFLAGS=/O2 /D_CRT_SECURE_NO_WARNINGS
JATTACH_EXE=jattach.exe
+else
+ UNAME_S := $(shell uname -s)
+ifneq ($(findstring FreeBSD,$(UNAME_S)),)
+ JATTACH_EXE=jattach
else
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
RPM_ROOT=$(ROOT_DIR)/build/rpm
@@ -10,6 +14,7 @@ else
CC=gcc
CFLAGS=-O2
JATTACH_EXE=jattach
+endif
endif
all: build build/$(JATTACH_EXE)