Merge pull request #134293 from r-burns/lowdown-musl

lowdown: fix musl build
This commit is contained in:
Sandro 2021-08-16 15:42:26 +02:00 committed by GitHub
commit e44b13c5a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
+