Files
termux-packages/packages/rdrview/Makefile.patch
termux-pacman-bot b1eaacc178 bump(main/rdrview): 0.1.5
Remove two hunks in Makefile.patch which changes hardcoded CC and PREFIX
variables, because those can be changed from make command line now. See
e8702a6eaa
2025-10-04 07:34:57 +00:00

17 lines
693 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,10 @@
endif
GIT_COMMIT = $(shell git rev-parse --short HEAD)
-CFLAGS = -DNDEBUG -O2 -Wall -Wextra -fno-strict-aliasing
-override CFLAGS += $(shell curl-config --cflags) $(shell xml2-config --cflags)
+CFLAGS += -DNDEBUG -Wall -Wextra -fno-strict-aliasing
+override CFLAGS += $(shell sh @TERMUX_PREFIX@/bin/curl-config --cflags) $(shell sh @TERMUX_PREFIX@/bin/xml2-config --cflags)
-LDLIBS = $(shell curl-config --libs) $(shell xml2-config --libs) -lm
+LDLIBS = $(shell sh @TERMUX_PREFIX@/bin/curl-config --libs) $(shell sh @TERMUX_PREFIX@/bin/xml2-config --libs) -lm
ifeq ($(SYSTEM), Linux)
LDLIBS += -lseccomp
else ifeq ($(SYSTEM), FreeBSD)