diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-04 22:17:36 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-04 22:17:36 +0000 |
commit | b1f37b4a5a014507881d522e131392a3dc4fa985 (patch) | |
tree | 8a1d56777b73f764eed5c5e133b81c5e0aad8e20 /target/tar | |
parent | d1345f067e18a2967638eb888c7ff5010d523acf (diff) | |
download | buildroot-novena-b1f37b4a5a014507881d522e131392a3dc4fa985.tar.gz buildroot-novena-b1f37b4a5a014507881d522e131392a3dc4fa985.zip |
only run ldconfig if ld.so.conf exists
Diffstat (limited to 'target/tar')
-rw-r--r-- | target/tar/tarroot.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/tar/tarroot.mk b/target/tar/tarroot.mk index 2ac07cddc..526f156b6 100644 --- a/target/tar/tarroot.mk +++ b/target/tar/tarroot.mk @@ -10,7 +10,9 @@ tarroot: host-fakeroot makedevs -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true; @rm -rf $(TARGET_DIR)/usr/man @rm -rf $(TARGET_DIR)/usr/info - /sbin/ldconfig -r $(TARGET_DIR) + test -e "$(TARGET_DIR)/etc/ld.so.conf" \ + && /sbin/ldconfig -r $(TARGET_DIR) \ + || true # Use fakeroot to pretend all target binaries are owned by root $(STAGING_DIR)/usr/bin/fakeroot \ -i $(STAGING_DIR)/fakeroot.env \ |