diff options
Diffstat (limited to 'target/toolchain')
-rw-r--r-- | target/toolchain/Config.in | 2 | ||||
-rwxr-xr-x | target/toolchain/files/wrapper.sh | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/target/toolchain/Config.in b/target/toolchain/Config.in index 18c3ab544..eda2300a1 100644 --- a/target/toolchain/Config.in +++ b/target/toolchain/Config.in @@ -1,6 +1,6 @@ config MAKE_TOOLCHAIN bool "Build the OpenWrt based Toolchain" - depends !EXTERNAL_TOOLCHAIN + depends on !EXTERNAL_TOOLCHAIN help This is essentially the toolchain created by OpenWrt. diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh index 19e1863c2..2b760840d 100755 --- a/target/toolchain/files/wrapper.sh +++ b/target/toolchain/files/wrapper.sh @@ -64,6 +64,10 @@ case $TOOLCHAIN_PLATFORM in GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib" LD_SYSROOT_FLAGS="-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib" ;; + musl) + GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib" + LD_SYSROOT_FLAGS="-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib" + ;; *) GCC_SYSROOT_FLAGS="" LD_SYSROOT_FLAGS="" |