]> git.pld-linux.org Git - packages/efivar.git/blobdiff - efivar-static.patch
- added static patch, fixes shared libs packaging
[packages/efivar.git] / efivar-static.patch
diff --git a/efivar-static.patch b/efivar-static.patch
new file mode 100644 (file)
index 0000000..15dd5d3
--- /dev/null
@@ -0,0 +1,24 @@
+--- efivar-0.21/src/Makefile.orig      2015-07-13 22:00:06.000000000 +0200
++++ efivar-0.21/src/Makefile   2015-09-12 09:24:38.062055687 +0200
+@@ -5,11 +5,12 @@
+ include $(TOPDIR)/Make.version
+ LIBTARGETS = $(foreach x,libefivar libefiboot,$(x).so.$(VERSION) $(x).so.$(MAJOR_VERSION))
++STATICLIBTARGETS = libefivar.a libefiboot.a
+ PCTARGETS = efivar.pc efiboot.pc
+ BINTARGETS = efivar
+ INCTARGETS = include/efivar/efivar-guids.h
+ all : $(EFIVAR_DEPS) $(INCTARGETS) deps
+-all : $(LIBTARGETS) $(PCTARGETS) $(BINTARGETS) libefiboot.so
++all : $(LIBTARGETS) $(STATICLIBTARGETS) $(PCTARGETS) $(BINTARGETS) libefiboot.so
+       @$(MAKE) -C test TOPDIR=$(TOPDIR) SRCDIR=$(SRCDIR)/test $@
+ EFIVAR_OBJECTS = dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o \
+@@ -89,6 +90,7 @@
+ install : all
+       $(INSTALL) -d -m 755 $(DESTDIR)$(libdir)
+       $(foreach x, $(LIBTARGETS), $(INSTALL) -m 755 $(x) $(DESTDIR)$(libdir);)
++      $(foreach x, $(STATICLIBTARGETS), $(INSTALL) -m 644 $(x) $(DESTDIR)$(libdir);)
+       $(INSTALL) -d -m 755 $(DESTDIR)$(PCDIR)
+       $(foreach x, $(PCTARGETS), $(INSTALL) -m 644 $(x) $(DESTDIR)$(PCDIR) ;)
+       $(INSTALL) -d -m 755 $(DESTDIR)$(includedir)/efivar
This page took 0.028233 seconds and 4 git commands to generate.