2021-03-20 23:49:43 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
CC=gcc ./configure \
|
2021-07-06 00:13:58 +01:00
|
|
|
--host=i386-unknown-linux-musl \
|
2021-03-20 23:49:43 +00:00
|
|
|
--disable-shared \
|
2021-06-24 00:32:19 +01:00
|
|
|
--prefix="${PREFIX}" \
|
|
|
|
--libdir="${PREFIX}/lib/musl" \
|
|
|
|
--includedir="${PREFIX}/include/"
|
2021-03-20 23:49:43 +00:00
|
|
|
|
|
|
|
# configure script creates this file
|
2021-03-29 18:20:10 +01:00
|
|
|
if test -f /dev/null; then
|
|
|
|
rm /dev/null
|
|
|
|
mknod -m 666 /dev/null c 1 3
|
|
|
|
fi
|
2021-03-20 23:49:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
make CROSS_COMPILE=
|
|
|
|
}
|