libmandoc.so must be linked with COMPAT_OBJS

This commit is contained in:
Björn Esser 2020-04-14 17:08:24 +02:00
parent aff8b49b8e
commit 16c649d2cf
2 changed files with 6 additions and 3 deletions

View File

@ -59,8 +59,8 @@ diff -up mandoc-1.14.5/Makefile.orig mandoc-1.14.5/Makefile
libmandoc.a: $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
ar rs $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
+libmandoc.so.$(SOVERSION): $(LIBMANDOC_OBJS)
+ $(CC) -shared -Wl,-soname=libmandoc.so.$(SOMAJOR) -o $@ $(LIBMANDOC_OBJS)
+libmandoc.so.$(SOVERSION): $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
+ $(CC) -shared -Wl,-soname=libmandoc.so.$(SOMAJOR) -o $@ $(COMPAT_OBJS) $(LIBMANDOC_OBJS)
+
+libmandoc.so.$(SOMAJOR): libmandoc.so.$(SOVERSION)
+ ln -sf libmandoc.so.$(SOVERSION) libmandoc.so.$(SOMAJOR)

View File

@ -1,6 +1,6 @@
Name: mandoc
Version: 1.14.5
Release: 9%{?dist}
Release: 10%{?dist}
Summary: A suite of tools for compiling mdoc and man
License: ISC
@ -234,6 +234,9 @@ fi
%{_mandir}/man3/tbl.3*
%changelog
* Tue Apr 14 2020 Björn Esser <besser82@fedoraproject.org> - 1.14.5-10
- libmandoc.so must be linked with COMPAT_OBJS
* Mon Mar 09 2020 David Cantrell - 1.14.5-9
- BR perl-interpreter