Commit cd6e913
committed
package/libcap: avoid calling /sbin/ldconfig during the host build
There is snippet in the install path that calls /sbin/ldconfig
when a variable FAKEROOT is empty
install-shared-cap: install-common-cap $(MINCAPLIBNAME)
install -m 0755 $(MINCAPLIBNAME) $(FAKEROOT)$(LIBDIR)/$(MINCAPLIBNAME)
ln -sf $(MINCAPLIBNAME) $(FAKEROOT)$(LIBDIR)/$(MAJCAPLIBNAME)
ln -sf $(MAJCAPLIBNAME) $(FAKEROOT)$(LIBDIR)/$(CAPLIBNAME)
ifeq ($(FAKEROOT),)
-/sbin/ldconfig
endif
And this variable is defined when DESTDIR is used, so still define prefix
but use the DESTDIR in the host build as well to avoid calling ldconfig
at all.
Signed-off-by: Charles Hardin <charles.hardin@chargepoint.com>1 parent 66339cc commit cd6e913
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments