From 369b3cc29ac306d3b2ff9df38163be6d31b0b12b Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Wed, 10 Nov 2021 23:36:20 +0800 Subject: [PATCH 1/3] gnu: lowdown: Generate position-independent code. * gnu/packages/markup.scm (lowdown)[arguments]: Use -fPIC. --- gnu/packages/markup.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/markup.scm b/gnu/packages/markup.scm index 06e653a1c9..474b5343e9 100644 --- a/gnu/packages/markup.scm +++ b/gnu/packages/markup.scm @@ -138,7 +138,9 @@ (define-public lowdown (let ((out (assoc-ref outputs "out"))) (invoke "./configure" (string-append "PREFIX=" out) - (string-append "MANDIR=" out "/share/man")))))))) + (string-append "MANDIR=" out "/share/man")))))) + ;; The shared library of Nix is linked with lowdown's static archive. + #:make-flags '("CFLAGS=-fPIC"))) (native-inputs `(("which" ,which))) (home-page "https://kristaps.bsd.lv/lowdown/") -- 2.33.1