File json-table-fix-build.patch of Package json-table
diff --git a/Makefile b/Makefile
index 2927afe..7172c50 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,8 @@
OS := $(shell uname -s)
-ifneq (${OS}, Darwin)
-LDFLAGS += -static
-endif
-
CFLAGS += -D_GNU_SOURCE=1 -O3 -Wall -Werror -Winline -pedantic-errors -std=c99
+DESTDIR =
PREFIX := /usr/local
BINDIR := $(PREFIX)/bin
MANDIR := $(PREFIX)/share/man/man1
@@ -48,9 +45,9 @@ build/prof/jt: build/prof/jt.o build/prof/stack.o build/prof/buffer.o build/prof
docs: jt.1 jt.1.html
install: jt jt.1
- mkdir -p $(BINDIR) $(MANDIR)
- cp jt $(BINDIR)
- cp jt.1 $(MANDIR)
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
+ cp jt $(DESTDIR)$(BINDIR)
+ cp jt.1 $(DESTDIR)$(MANDIR)
cat $(PREFIX)/man/man1/jt.1 2>&1 |grep -q 'micha\\\.niskin@gmail\\\.com' \
&& rm -f $(PREFIX)/man/man1/jt.1 || true