@@ -208,6 +208,7 @@ (define-public herbstluftwm
xterm
xsetroot
libx11
+ libxcursor
libxext
libxfixes
libxinerama
@@ -224,6 +225,10 @@ (define-public herbstluftwm
(string-append "-DBASHCOMPLETIONDIR=" out "/etc/bash_completion.d")))
#:phases
(modify-phases %standard-phases
+ (add-before 'configure 'link-libxcursor
+ (lambda _
+ ;; libX11 will dlopen libXcursor to load cursors.
+ (setenv "LDFLAGS" "-lXcursor")))
(add-after 'install 'install-xsession
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
From: 宋文武 <iyzsong@member.fsf.org> * gnu/packages/wm.scm (herbstluftwm)[inputs]: Add libxcursor. [arguments]: Set 'LDFLAGS' to '-lXcursor'. --- gnu/packages/wm.scm | 5 +++++ 1 file changed, 5 insertions(+) base-commit: ff5fbcc19bce6e94ead0cc79b27ae8ed0307463d prerequisite-patch-id: 720b6ad92b3e9a1d7fd35692b2c14117af2d29ae