diff options
Diffstat (limited to 'java/jattach/files/patch-Makefile')
| -rw-r--r-- | java/jattach/files/patch-Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/java/jattach/files/patch-Makefile b/java/jattach/files/patch-Makefile new file mode 100644 index 000000000000..0482878d6797 --- /dev/null +++ b/java/jattach/files/patch-Makefile @@ -0,0 +1,21 @@ +--- 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) |
