2021-02-08 06:23:31 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2021-02-01 01:09:24 +00:00
|
|
|
src_prepare() {
|
2021-05-03 23:48:06 +01:00
|
|
|
default
|
2021-02-01 01:09:24 +00:00
|
|
|
|
|
|
|
# tcc does not support complex types
|
|
|
|
rm -rf src/complex
|
|
|
|
|
|
|
|
# Configure fails without this
|
|
|
|
mkdir -p /dev
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
CC=tcc ./configure \
|
|
|
|
--host=i386 \
|
|
|
|
--disable-shared \
|
|
|
|
--prefix=/after \
|
|
|
|
--libdir=/after/lib/musl/ \
|
|
|
|
--includedir=/after/include/musl
|
2021-02-18 20:29:45 +00:00
|
|
|
|
|
|
|
# configure script creates this file
|
2021-03-29 18:20:10 +01:00
|
|
|
if test -f /dev/null; then
|
|
|
|
rm /dev/null
|
|
|
|
fi
|
2021-02-01 01:09:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
make CROSS_COMPILE= AR="tcc -ar" RANLIB=true CFLAGS="-DSYSCALL_NO_TLS"
|
|
|
|
}
|