diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2007-08-08 14:58:47 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2007-08-08 14:58:47 +0000 |
commit | 6c0c83fb5639e382b67e737447afd86e4ff66081 (patch) | |
tree | e9b86d0592422d323b37d21a2b7b29a4a9d9a453 | |
parent | 1b50c35b012ffa8e055eea911af2b06241f7f095 (diff) | |
download | buildroot-novena-6c0c83fb5639e382b67e737447afd86e4ff66081.tar.gz buildroot-novena-6c0c83fb5639e382b67e737447afd86e4ff66081.zip |
Use cross ldconfig instead of host version
-rw-r--r-- | package/Makefile.in | 1 | ||||
-rw-r--r-- | target/cpio/cpioroot.mk | 2 | ||||
-rw-r--r-- | target/cramfs/cramfs.mk | 2 | ||||
-rw-r--r-- | target/ext2/ext2root.mk | 2 | ||||
-rw-r--r-- | target/jffs2/jffs2root.mk | 2 | ||||
-rw-r--r-- | target/squashfs/squashfsroot.mk | 2 | ||||
-rw-r--r-- | target/tar/tarroot.mk | 2 |
7 files changed, 7 insertions, 6 deletions
diff --git a/package/Makefile.in b/package/Makefile.in index 071635b58..d7a817d8d 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -131,6 +131,7 @@ endif TARGET_CC=$(TARGET_CROSS)gcc TARGET_CXX=$(TARGET_CROSS)g++ TARGET_RANLIB=$(TARGET_CROSS)ranlib +TARGET_LDCONFIG=$(TARGET_CROSS)ldconfig INSTALL=/usr/bin/install ifeq ($(BR2_STRIP_strip),y) STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note diff --git a/target/cpio/cpioroot.mk b/target/cpio/cpioroot.mk index 1a69b5002..e04cff3fd 100644 --- a/target/cpio/cpioroot.mk +++ b/target/cpio/cpioroot.mk @@ -14,7 +14,7 @@ cpioroot: host-fakeroot makedevs cpioroot-init -@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) 2>/dev/null + -$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET)) touch $(STAGING_DIR)/.fakeroot.00000 diff --git a/target/cramfs/cramfs.mk b/target/cramfs/cramfs.mk index 334048cd4..00064b433 100644 --- a/target/cramfs/cramfs.mk +++ b/target/cramfs/cramfs.mk @@ -52,7 +52,7 @@ cramfsroot: host-fakeroot makedevs cramfs -@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) 2>/dev/null + -$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET)) touch $(STAGING_DIR)/.fakeroot.00000 diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk index dda8013e6..b79e9b266 100644 --- a/target/ext2/ext2root.mk +++ b/target/ext2/ext2root.mk @@ -94,7 +94,7 @@ $(EXT2_BASE): host-fakeroot makedevs genext2fs @test -d $(TARGET_DIR)/usr/share && \ rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share || \ true - -/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null + -$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET)) touch $(STAGING_DIR)/.fakeroot.00000 diff --git a/target/jffs2/jffs2root.mk b/target/jffs2/jffs2root.mk index 3341c0bf8..311a60029 100644 --- a/target/jffs2/jffs2root.mk +++ b/target/jffs2/jffs2root.mk @@ -54,7 +54,7 @@ $(JFFS2_TARGET): host-fakeroot makedevs mtd-host @rm -rf $(TARGET_DIR)/usr/share/man @rm -rf $(TARGET_DIR)/usr/info @rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share - -/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null + -$(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET)) touch $(STAGING_DIR)/.fakeroot.00000 diff --git a/target/squashfs/squashfsroot.mk b/target/squashfs/squashfsroot.mk index c9eb74327..3084aa08d 100644 --- a/target/squashfs/squashfsroot.mk +++ b/target/squashfs/squashfsroot.mk @@ -47,7 +47,7 @@ squashfsroot: host-fakeroot makedevs squashfs -@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) 2>/dev/null + $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(SQUASHFS_TARGET)) touch $(STAGING_DIR)/.fakeroot.00000 diff --git a/target/tar/tarroot.mk b/target/tar/tarroot.mk index b1dd0b4b2..18293d7ec 100644 --- a/target/tar/tarroot.mk +++ b/target/tar/tarroot.mk @@ -26,7 +26,7 @@ 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) 2>/dev/null + $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null # Use fakeroot to pretend all target binaries are owned by root rm -f $(STAGING_DIR)/_fakeroot.$(notdir $(TAR_TARGET)) touch $(STAGING_DIR)/.fakeroot.00000 |