termux-packages/packages/libucontext/Makefile.patch

18 lines
515 B
Diff

--- ../libucontext-libucontext-1.1/Makefile 2021-03-09 07:46:31.000000000 +0000
+++ ./Makefile 2022-02-11 13:33:41.720671627 +0000
@@ -14,10 +14,10 @@
override ARCH = arm
endif
-LIBDIR := /lib
-INCLUDEDIR := /usr/include
-PKGCONFIGDIR := /usr/lib/pkgconfig
-CFLAGS := -ggdb3 -O2 -Wall
+LIBDIR := $(PREFIX)/lib
+INCLUDEDIR := $(PREFIX)/include
+PKGCONFIGDIR := $(PREFIX)/lib/pkgconfig
+CFLAGS ?= -ggdb3 -O2 -Wall
CPPFLAGS := -Iinclude -Iarch/${ARCH} -Iarch/common
EXPORT_UNPREFIXED := yes
FREESTANDING := no