From 803abbf2bc053bf512fd9ab1d0ad6f2d5ff5bcda Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Mon, 16 Aug 2021 00:07:41 -0700 Subject: [PATCH] lowdown: fix musl build Whenever building a shared library, we need to compile with -fPIC. (This is sometimes implicitly added by the hardening flags, but not always, e.g. for pkgsMusl.) --- pkgs/tools/typesetting/lowdown/shared.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/typesetting/lowdown/shared.patch b/pkgs/tools/typesetting/lowdown/shared.patch index ed9f266b3f9c..75ee03da9700 100644 --- a/pkgs/tools/typesetting/lowdown/shared.patch +++ b/pkgs/tools/typesetting/lowdown/shared.patch @@ -11,10 +11,11 @@ index 955f737..2c9532c 100644 www: $(HTMLS) $(PDFS) $(THUMBS) lowdown.tar.gz lowdown.tar.gz.sha512 -@@ -101,6 +101,9 @@ lowdown-diff: lowdown +@@ -101,6 +101,10 @@ lowdown-diff: lowdown liblowdown.a: $(OBJS) $(COMPAT_OBJS) $(AR) rs $@ $(OBJS) $(COMPAT_OBJS) ++%.o: CFLAGS += -fPIC +liblowdown.so: $(OBJS) $(COMPAT_OBJS) + $(CC) -shared -o $@ $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) +