• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/attr/attr-01-support-static-installation.patch
Thomas PetazzoniThomas Petazzoni committed cd2cac813e820 Aug 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Support installation of .a file when doing static linking
2
​
3
When doing static linking (i.e ENABLE_SHARED != yes), the attr 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.
6
​
7
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
​
9
Index: b/include/buildmacros
10
===================================================================
11
--- a/include/buildmacros
12
+++ b/include/buildmacros
13
@@ -97,7 +97,15 @@
14
 
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
27
 
28
 INSTALL_MAN = \
29
    @for d in $(MAN_PAGES); do \
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.