From 87fe11cfcc4cc8d708e9266af4c370a6c05df37a Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sat, 9 May 2020 14:02:24 +0200 Subject: [PATCH] Library dependencies must be enabled / uncommented on a need basis (alpha patch and themed cursor patch), ref. #5 --- config.mk | 8 +++++++- patches.def.h | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config.mk b/config.mk index 7a6747a..07709fc 100644 --- a/config.mk +++ b/config.mk @@ -12,11 +12,17 @@ X11LIB = /usr/X11R6/lib PKG_CONFIG = pkg-config +# Uncomment this for the alpha patch / ALPHA_PATCH +#XRENDER = -lXrender + +# Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH +#XCURSOR = -lXcursor + # includes and libs INCS = -I$(X11INC) \ `$(PKG_CONFIG) --cflags fontconfig` \ `$(PKG_CONFIG) --cflags freetype2` -LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft -lXrender -lXcursor\ +LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft ${XRENDER} ${XCURSOR}\ `$(PKG_CONFIG) --libs fontconfig` \ `$(PKG_CONFIG) --libs freetype2` diff --git a/patches.def.h b/patches.def.h index 0c7ceab..ecf75ff 100644 --- a/patches.def.h +++ b/patches.def.h @@ -15,6 +15,8 @@ #define ALPHA_PATCH 0 /* This patch allows st to reize to any pixel size rather than snapping to character width/height. + * You need to uncomment the corresponding line in config.mk to use the -lXrender library + * when including this patch. * https://st.suckless.org/patches/anysize/ */ #define ANYSIZE_PATCH 0 @@ -189,6 +191,8 @@ #define SPOILER_PATCH 0 /* Instead of a default X cursor, use the xterm cursor from your cursor theme. + * You need to uncomment the corresponding line in config.mk to use the -lXcursor library + * when including this patch. * https://st.suckless.org/patches/themed_cursor/ */ #define THEMED_CURSOR_PATCH 0