diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-21 00:01:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-21 00:01:06 +0100 |
commit | d33b3cf6cff9fdbfc8362bf854c3c34b2c28d518 (patch) | |
tree | 7fb87b3c81930bc74ab84958c42e07fde61f6b7f /app-text/lowdown/files/lowdown-1.0.1-linking.patch | |
parent | 1e2d947ea35b8fd5d14d55f60265f9763fa70a72 (diff) |
gentoo auto-resync : 21:04:2023 - 00:01:05
Diffstat (limited to 'app-text/lowdown/files/lowdown-1.0.1-linking.patch')
-rw-r--r-- | app-text/lowdown/files/lowdown-1.0.1-linking.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-text/lowdown/files/lowdown-1.0.1-linking.patch b/app-text/lowdown/files/lowdown-1.0.1-linking.patch new file mode 100644 index 000000000000..26996956ff58 --- /dev/null +++ b/app-text/lowdown/files/lowdown-1.0.1-linking.patch @@ -0,0 +1,45 @@ +diff --git a/Makefile b/Makefile +index 775aef1..c7094f8 100644 +--- a/Makefile ++++ b/Makefile +@@ -173,11 +173,11 @@ 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 $(LDADD) ++lowdown: liblowdown.so main.o ++ $(CC) -o $@ main.o -L. -llowdown $(LDFLAGS) $(LDADD_MD5) -lm $(LDADD) + + lowdown-diff: lowdown +- ln -f lowdown lowdown-diff ++ ln -s lowdown lowdown-diff + + liblowdown.a: $(OBJS) $(COMPAT_OBJS) + $(AR) rs $@ $(OBJS) $(COMPAT_OBJS) +@@ -186,14 +186,14 @@ liblowdown.so: $(OBJS) $(COMPAT_OBJS) + $(CC) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -lm -Wl,${LINKER_SONAME},$@.$(LIBVER) $(LDLIBS) + ln -sf $@.$(LIBVER) $@ + +-install: bins ++install: bins install_libs + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(MANDIR)/man1 + mkdir -p $(DESTDIR)$(MANDIR)/man5 + mkdir -p $(DESTDIR)$(SHAREDIR)/lowdown/odt + $(INSTALL_DATA) share/odt/styles.xml $(DESTDIR)$(SHAREDIR)/lowdown/odt + $(INSTALL_PROGRAM) lowdown $(DESTDIR)$(BINDIR) +- $(INSTALL_PROGRAM) lowdown-diff $(DESTDIR)$(BINDIR) ++ ln -s lowdown $(DESTDIR)$(BINDIR)/lowdown-diff + for f in $(MAN1S) $(MAN5S) ; do \ + name=`basename $$f .html` ; \ + section=$${name##*.} ; \ +@@ -219,7 +219,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] |