diff options
Diffstat (limited to 'app-text/lowdown/files/lowdown-0.11.1-linking.patch')
-rw-r--r-- | app-text/lowdown/files/lowdown-0.11.1-linking.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app-text/lowdown/files/lowdown-0.11.1-linking.patch b/app-text/lowdown/files/lowdown-0.11.1-linking.patch new file mode 100644 index 000000000000..2aa5cb1fe58e --- /dev/null +++ b/app-text/lowdown/files/lowdown-0.11.1-linking.patch @@ -0,0 +1,37 @@ +diff --git a/Makefile b/Makefile +index ccc163d..d148da6 100644 +--- a/Makefile ++++ b/Makefile +@@ -173,8 +173,8 @@ installwww: www + $(INSTALL) -m 0444 lowdown.tar.gz $(WWWDIR)/snapshots + $(INSTALL) -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots + +-lowdown: liblowdown.a main.o +- $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) $(LDADD_MD5) -lm ++lowdown: liblowdown.so main.o ++ $(CC) -o $@ main.o $(LDADD_MD5) -lm -L. -llowdown $(LDFLAGS) + + lowdown-diff: lowdown + ln -f lowdown lowdown-diff +@@ -183,10 +183,10 @@ liblowdown.a: $(OBJS) $(COMPAT_OBJS) + $(AR) rs $@ $(OBJS) $(COMPAT_OBJS) + + liblowdown.so: $(OBJS) $(COMPAT_OBJS) +- $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -Wl,-soname,$@.$(LIBVER) ++ $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -lm -Wl,-soname,$@.$(LIBVER) + ln -sf $@.$(LIBVER) $@ + +-install: bins ++install: bins install_libs + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR)/man1 + mkdir -p $(DESTDIR)$(MANDIR)/man5 +@@ -218,7 +218,7 @@ install_shared: liblowdown.so install_lib_common + install_static: liblowdown.a install_lib_common + $(INSTALL_LIB) liblowdown.a $(DESTDIR)$(LIBDIR) + +-install_libs: install_shared install_static ++install_libs: install_shared + + distcheck: lowdown.tar.gz.sha512 + mandoc -Tlint -Werror man/*.[135] |