Skip to contentSkip to conversation

musl: Make only shared libraries conditional

PATCH New Charles Duffy 2 participants 2 messages Oct 15, 2015 – Oct 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 musl: Make only shared libraries conditional

From: Charles Duffy <[email protected]>

External toolchain use requires a static libc (as buildroot uses gcc --print-file-name libc.a to find the sysroot); thus, the static portion of a musl build should not be conditional.

---
 package/musl/musl.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/musl/musl.mk +2 -1
index f0c45f5..2f43aab 100644
@@ -29,7 +29,8 @@ define MUSL_CONFIGURE_CMDS
 			--prefix=/usr \
 			--libdir=/lib \
 			--disable-gcc-wrapper \
-			$(SHARED_STATIC_LIBS_OPTS))
+			--enable-static \
+			$(if $(BR2_STATIC_LIBS),--disable-shared,--enable-shared))
 endef
 
 define MUSL_BUILD_CMDS
Signature · 1 line
2.0.0
#1 lore raw

PATCH 1/1 musl: Make only shared libraries conditional

Dear Charles Duffy,

Quoted 10 lines · Charles Duffy

From: Charles Duffy <[email protected]>

External toolchain use requires a static libc (as buildroot uses gcc --print-file-name libc.a to find the sysroot); thus, the static portion of a musl build should not be conditional.

---
 package/musl/musl.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks.

Thomas

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