Skip to contentSkip to conversation

Buildroot Patches I Use [3] - ldconfig -N opt

Buildroot Darcy Watkins 2 participants 5 messages Nov 9, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

This instructs the ldconfig not to build / rebuild the cache. It was a while back I encountered this and I have just carried it forward since. Someone more expert should check this and decide on its appropriateness for 2010.11 and/or future buildroot release.

Signed-off by: Darcy Watkins <[email protected]>

Makefile +2 -2
Index: buildroot-2010.11_powerpc/Makefile
===================================================================
@@ -413,9 +413,9 @@ endif
 	mkdir -p $(TARGET_DIR)/var/cache/ldconfig
 	if [ -x "$(TARGET_CROSS)ldconfig" ]; \
 	then \
-		$(TARGET_CROSS)ldconfig -r $(TARGET_DIR); \
+		$(TARGET_CROSS)ldconfig -N -r $(TARGET_DIR); \
 	else \
-		/sbin/ldconfig -r $(TARGET_DIR); \
+		/sbin/ldconfig -N -r $(TARGET_DIR); \
 	fi
 	echo $(BR2_VERSION_FULL) > $(TARGET_DIR)/etc/br-version
 
#1 lore raw
Quoted 4 lines · On Tue, 09 Nov 2010 07:50:56 -0800 Darcy Watkins <[email protected]> wrote:

This instructs the ldconfig not to build / rebuild the cache. It was a while back I encountered this and I have just carried it forward since. Someone more expert should check this and decide on its appropriateness for 2010.11 and/or future buildroot release.

Well all the point of calling ldconfig at this point is to create this cache. So if we add -N to disable the cache build, what's the point of calling ldconfig at all ?

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw
In reply to Darcy Watkins
Quoted 3 lines

Well all the point of calling ldconfig at this point is to create this
cache. So if we add -N to disable the cache build, what's the point of
calling ldconfig at all ?

Then I'm going to try building without the patch to see if it is OK to toss it into the infinite bit sink. Thx!

Darcy

#3 lore raw
Quoted 2 lines · On Tue, 09 Nov 2010 10:37:33 -0800 Darcy Watkins <[email protected]> wrote:

Then I'm going to try building without the patch to see if it is OK to toss it into the infinite bit sink. Thx!

What is the problem you're having without the patch ?

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#4 lore raw
In reply to Darcy Watkins
Quoted 4 lines
Quoted 2 lines

Then I'm going to try building without the patch to see if it is OK to toss it into the infinite bit sink. Thx!

What is the problem you're having without the patch ?

I think I ran into difficulties a while back when using crosstool and then an upgrade to a newer Fedora distribution.

I just ran a build of buildroot without the patch and using crosstool-ng 1.9.0 as an external toolchain. Worked fine so to the bit sink the patch goes.

Thx.

Darcy