Library dependencies must be enabled / uncommented on a need basis (alpha patch and themed cursor patch), ref. #5

This commit is contained in:
bakkeby 2020-05-09 14:02:24 +02:00
parent f34aef7e07
commit 87fe11cfcc
2 changed files with 11 additions and 1 deletions

View File

@ -12,11 +12,17 @@ X11LIB = /usr/X11R6/lib
PKG_CONFIG = pkg-config 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 # includes and libs
INCS = -I$(X11INC) \ INCS = -I$(X11INC) \
`$(PKG_CONFIG) --cflags fontconfig` \ `$(PKG_CONFIG) --cflags fontconfig` \
`$(PKG_CONFIG) --cflags freetype2` `$(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 fontconfig` \
`$(PKG_CONFIG) --libs freetype2` `$(PKG_CONFIG) --libs freetype2`

View File

@ -15,6 +15,8 @@
#define ALPHA_PATCH 0 #define ALPHA_PATCH 0
/* This patch allows st to reize to any pixel size rather than snapping to character width/height. /* 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/ * https://st.suckless.org/patches/anysize/
*/ */
#define ANYSIZE_PATCH 0 #define ANYSIZE_PATCH 0
@ -189,6 +191,8 @@
#define SPOILER_PATCH 0 #define SPOILER_PATCH 0
/* Instead of a default X cursor, use the xterm cursor from your cursor theme. /* 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/ * https://st.suckless.org/patches/themed_cursor/
*/ */
#define THEMED_CURSOR_PATCH 0 #define THEMED_CURSOR_PATCH 0