Skip to content
Snippets Groups Projects
Commit 0c3bccdd authored by Timo Teräs's avatar Timo Teräs
Browse files

main/musl: fix arch, support crosscompiler creation

parent 6412f70f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ pkgver=0.9.13
pkgrel=0
pkgdesc="the musl c library (libc) implementation"
url="http://www.musl-libc.org/"
arch="x86 x86_64 arm armel"
arch="all"
license="MIT"
depends=""
depends_dev=""
......@@ -33,8 +33,21 @@ prepare() {
cp "$srcdir"/getopt_long.c src/misc/
}
install_sysroot_headers() {
cd "$_builddir"
if [ -z "${CBUILDROOT}" ]; then
echo "CBUILDROOT not must be set!"
return 1
fi
case "$CARCH" in
arm*) ARCH="arm" ;;
x86) ARCH="i386" ;;
x86_64) ARCH="x86_64" ;;
esac
make ARCH="$ARCH" DESTDIR="${CBUILDROOT}" install-headers || return 1
}
build() {
local _ldflags
cd "$_builddir"
# note: not autotools
LDFLAGS="$LDFLAGS -Wl,-soname,libc.musl-${CARCH}.so.1" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment