The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / acl / 0001-support-static-installation.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/acl/0001-support-static-installation.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/acl/0001-support-static-installation.patch
new file mode 100644 (file)
index 0000000..4cb473f
--- /dev/null
@@ -0,0 +1,29 @@
+Support installation of .a file when doing static linking
+
+When doing static linking (i.e ENABLE_SHARED != yes), the acl build
+logic wasn't installing any library at all, not even the .a file which
+is needed for static linking. This patch fixes that.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/include/buildmacros
+===================================================================
+--- a/include/buildmacros
++++ b/include/buildmacros
+@@ -97,7 +97,15 @@
+ INSTALL_LTLIB_STATIC = \
+       cd $(TOPDIR)/$(LIBNAME)/.libs; \
+-      ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR);
++      ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \
++      ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).la $(PKG_DEVLIB_DIR); \
++      ../$(INSTALL) -m 644 $(LIBNAME).la $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
++      ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
++      ../$(INSTALL) -T so_base $(LIBNAME).la $(PKG_LIB_DIR); \
++      if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \
++      ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
++      ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
++      fi
+ INSTALL_MAN = \
+       @for d in $(MAN_PAGES); do \