Setup to remove pregenerated header files from musl 1.1

This commit is contained in:
fosslinux 2025-02-03 15:54:14 +11:00
parent c5175b46c5
commit 4d27a137e8
11 changed files with 91 additions and 41 deletions

View file

@ -7,6 +7,9 @@ src_prepare() {
# tcc does not support complex types
rm -rf src/complex
# Configure fails without this
mkdir -p /dev
}
src_configure() {
@ -15,7 +18,7 @@ src_configure() {
--disable-shared \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--includedir="${PREFIX}/include"
--includedir="${PREFIX}/include/"
# configure script creates this file
if test -f /dev/null; then
@ -24,9 +27,5 @@ src_configure() {
}
src_compile() {
make "${MAKEJOBS}" PREFIX="${PREFIX}" CROSS_COMPILE= CFLAGS="-DSYSCALL_NO_TLS" AS_CMD='as -o $@ $<'
}
src_install() {
make PREFIX="${PREFIX}" DESTDIR="${DESTDIR}" install
make "${MAKEJOBS}" CROSS_COMPILE= AR="tcc -ar" RANLIB=true CFLAGS="-DSYSCALL_NO_TLS"
}