Skip to contentSkip to conversation

coreutils: disable stdbuf for static builds

PATCH New David du Colombier 2 participants 2 messages Nov 28, 2015 – Dec 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coreutils: disable stdbuf for static builds

When stdbuf is enabled, it builds a shared library, but it will fail in a static-only scenario.

---
 package/coreutils/coreutils.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/coreutils/coreutils.mk +4 -0
index 60455ac..d8e2ee6 100644
@@ -109,6 +109,10 @@ endef
 COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_CLEANUP_BIN
 endif
 
+ifeq ($(BR2_STATIC_LIBS),y)
+COREUTILS_CONF_OPTS += --enable-no-install-program=stdbuf
+endif
+
 define COREUTILS_CLEANUP
 	# link for archaic shells
 	ln -fs test $(TARGET_DIR)/usr/bin/[
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 coreutils: disable stdbuf for static builds

Dear David du Colombier,

Quoted 7 lines · David du Colombier

When stdbuf is enabled, it builds a shared library, but it will fail in a static-only scenario.

---
 package/coreutils/coreutils.mk | 4 ++++
 1 file changed, 4 insertions(+)

Applied, thanks. I've added a reference to the autobuilder failure that this patch is fixing.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com