summaryrefslogtreecommitdiff
path: root/target/toolchain
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-11-23 20:02:29 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-11-23 20:02:29 +0000
commit6b63716262b89bec53402817876116898936d5f4 (patch)
tree1d792a9083d34dc6e40620b3c5802e9168a461e0 /target/toolchain
parent14ed3f0f22f34b337bb58b2a5fd09e887df3331f (diff)
downloadmtk-20170518-6b63716262b89bec53402817876116898936d5f4.zip
mtk-20170518-6b63716262b89bec53402817876116898936d5f4.tar.gz
mtk-20170518-6b63716262b89bec53402817876116898936d5f4.tar.bz2
add preliminary support for musl
Musl is an alternative C-library, see http://www.musl-libc.org for more infos. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34314
Diffstat (limited to 'target/toolchain')
-rwxr-xr-xtarget/toolchain/files/wrapper.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh
index 19e1863..2b76084 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=""