diff mbox

[2/2] Makefile: add -C flag for /sbin/ldconfig

Message ID 1445502151-25735-2-git-send-email-bjorn.forsman@gmail.com
State Superseded
Headers show

Commit Message

Bjørn Forsman Oct. 22, 2015, 8:22 a.m. UTC
Needed when building in a FHS chroot on NixOS[1]. Without it, ldconfig
tries to open a directory in the nix store. Being explicit fixes it.

Tested that it doesn't regress on Ubuntu 14.04.

[1] I know, it's an uncommon setup :-)

Signed-off-by: Bjørn Forsman <bjorn.forsman@gmail.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 61ce1f9..ff812f3 100644
--- a/Makefile
+++ b/Makefile
@@ -607,6 +607,7 @@  endif
 					-f $(TARGET_DIR)/etc/ld.so.conf; \
 	else \
 		/sbin/ldconfig -r $(TARGET_DIR) \
+			       -C /etc/ld.so.cache \
 			       -f /etc/ld.so.conf; \
 	fi
 	( \