linux-headers symlink for musl libc

This commit is contained in:
sulincix committed 2023-04-18 20:41:52 +00:00
1 parent ceaa303a05
commit 92482911cd
2 files changed
+12

No files matched your search

+7
View File
@@ -51,5 +51,12 @@ package(){
EOF EOF
chmod 755 "$DESTDIR"/usr/bin/musl-ldd chmod 755 "$DESTDIR"/usr/bin/musl-ldd
install ../ldconfig "$DESTDIR"/usr/bin/musl-ldconfig install ../ldconfig "$DESTDIR"/usr/bin/musl-ldconfig
# write sys/cdefs.h header
{
echo '#ifdef __cplusplus'
echo '#define __BEGIN_DECLS extern "C" {'
echo '#define __END_DECLS }'
echo '#endif'
} > "$DESTDIR"/usr/include/musl/sys/cdefs.h
} }
+5
View File
@@ -19,5 +19,10 @@ package(){
# install headers (archlinux kerhel config used) # install headers (archlinux kerhel config used)
ALLOWROOT=1 mklinux -f -o $DESTDIR -v $version -y 1 --no-build \ ALLOWROOT=1 mklinux -f -o $DESTDIR -v $version -y 1 --no-build \
-c "https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config" -c "https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config"
# symlink for musl
mkdir -p $DESTDIR/usr/include/musl
for name in $(ls $DESTDIR/usr/include/ | grep -v musl) ; do
ln -s ../$name $DESTDIR/usr/include/musl/$name
done
} }