board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / acl / 0001-support-static-installation.patch
blob4cb473ffc2f4a6fa7f14793b0cef542e4768f4e0
1 Support installation of .a file when doing static linking
3 When doing static linking (i.e ENABLE_SHARED != yes), the acl build
4 logic wasn't installing any library at all, not even the .a file which
5 is needed for static linking. This patch fixes that.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 Index: b/include/buildmacros
10 ===================================================================
11 --- a/include/buildmacros
12 +++ b/include/buildmacros
13 @@ -97,7 +97,15 @@
15 INSTALL_LTLIB_STATIC = \
16 cd $(TOPDIR)/$(LIBNAME)/.libs; \
17 - ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR);
18 + ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \
19 + ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).la $(PKG_DEVLIB_DIR); \
20 + ../$(INSTALL) -m 644 $(LIBNAME).la $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
21 + ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
22 + ../$(INSTALL) -T so_base $(LIBNAME).la $(PKG_LIB_DIR); \
23 + if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \
24 + ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
25 + ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
26 + fi
28 INSTALL_MAN = \
29 @for d in $(MAN_PAGES); do \