musl: Make only shared libraries conditional
authorCharles Duffy <charles@dyfis.net>
Thu, 15 Oct 2015 15:27:18 +0000 (10:27 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 19 Oct 2015 21:04:48 +0000 (23:04 +0200)
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.

Signed-off-by: Charles Duffy <chaduffy@cisco.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/musl/musl.mk

index f0c45f538b03756934314c70fdeb06ffa55b9124..2f43aabb3352d2e6271b65a874bec0577f01ea54 100644 (file)
@@ -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