commit 71d1f49b960b895f769450c895a010469b2fd9a4 parent 097331f3686afc203dd2577b09accf1dc209285f Author: lumidify <nobody@lumidify.org> Date: Fri, 18 Aug 2023 08:48:38 +0200 Fix compilation on newer systems that don't have imlib2-config anymore Reported by Max Schillinger Diffstat:
M | Makefile | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -20,8 +20,9 @@ DB_LDFLAGS = `pkg-config --libs xext` #DB_CFLAGS = -DNODB #DB_LDFLAGS = -CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} -Wall -Wextra -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11` `imlib2-config --cflags` -CROP_LDFLAGS = ${LDFLAGS} ${DB_LDFLAGS} `pkg-config --libs x11` `imlib2-config --libs` -lm +# Note: Older systems might need `imlib2-config --cflags` and `imlib2-config --libs` instead of pkg-config. +CROP_CFLAGS = ${CFLAGS} ${DB_CFLAGS} -Wall -Wextra -D_POSIX_C_SOURCE=200809L `pkg-config --cflags x11 imlib2` +CROP_LDFLAGS = ${LDFLAGS} ${DB_LDFLAGS} `pkg-config --libs x11 imlib2` -lm all: ${BIN}