X-Git-Url: https://git.armaanb.net/?p=asd-repo.git;a=blobdiff_plain;f=junk%2Flibtermkey%2Fpatches%2Fstatic-no-libtool.patch;fp=junk%2Flibtermkey%2Fpatches%2Fstatic-no-libtool.patch;h=248937dbbc0525752b733f39fa6d5cc16f0bb6ed;hp=0000000000000000000000000000000000000000;hb=e7778f9c71891072ff904d344fd186977bda3e1b;hpb=115f60d82f00b7e3bf89d668b085d5cd645e4c88 diff --git a/junk/libtermkey/patches/static-no-libtool.patch b/junk/libtermkey/patches/static-no-libtool.patch new file mode 100644 index 0000000..248937d --- /dev/null +++ b/junk/libtermkey/patches/static-no-libtool.patch @@ -0,0 +1,40 @@ +diff --git a/Makefile b/Makefile +index 199f143..b413b36 100644 +--- a/Makefile ++++ b/Makefile +@@ -67,11 +67,14 @@ MAN7DIR=$(MANDIR)/man7 + all: $(LIBRARY) $(DEMOS) + + %.lo: %.c termkey.h termkey-internal.h +- $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $< ++ $(CC) $(CFLAGS) -fPIC -o $@ -c $< + + $(LIBRARY): $(OBJECTS) + $(LIBTOOL) --mode=link --tag=CC $(CC) -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) $(LDFLAGS) -o $@ $^ + ++libtermkey.a: $(OBJECTS) ++ $(AR) rc $@ $^ ++ + demo: $(LIBRARY) demo.lo + $(LIBTOOL) --mode=link --tag=CC $(CC) -o $@ $^ + +@@ -106,7 +109,6 @@ clean: clean-test + + .PHONY: install + install: install-inc install-lib install-man +- $(LIBTOOL) --mode=finish $(DESTDIR)$(LIBDIR) + + install-inc: termkey.h + install -d $(DESTDIR)$(INCDIR) +@@ -114,9 +116,9 @@ install-inc: termkey.h + install -d $(DESTDIR)$(LIBDIR)/pkgconfig + LIBDIR=$(LIBDIR) INCDIR=$(INCDIR) VERSION=$(VERSION) sh termkey.pc.sh >$(DESTDIR)$(LIBDIR)/pkgconfig/termkey.pc + +-install-lib: $(LIBRARY) ++install-lib: libtermkey.a + install -d $(DESTDIR)$(LIBDIR) +- $(LIBTOOL) --mode=install install libtermkey.la $(DESTDIR)$(LIBDIR)/libtermkey.la ++ install libtermkey.a $(DESTDIR)$(LIBDIR)/libtermkey.a + + install-man: + install -d $(DESTDIR)$(MAN3DIR)