termux-packages/packages/gluelang/src-Makefile.patch
2022-04-04 09:14:20 +09:00

16 lines
315 B
Diff

--- a/src/Makefile
+++ b/src/Makefile
@@ -1,8 +1,8 @@
-CXX = g++
+CXX ?= g++
TARGET = glue
-BINDIR = /usr/local/bin
-CXXFLAGS = -Wall -O2 --static -std=c++11
-LDFLAGS = -lm
+BINDIR = @TERMUX_PREFIX@/bin
+CXXFLAGS ?= -Wall -O2 --static -std=c++11
+LDFLAGS ?= -lm
SRCS := $(wildcard *.cc)
OBJS := $(SRCS:.cc=.o)