tcc: build-style is configure

This commit is contained in:
Đoàn Trần Công Danh 2021-02-23 09:13:17 +07:00
parent e6635da5cc
commit 789fcdc637

View file

@ -6,7 +6,8 @@ version=${_distver}.${_voidver}
revision=1
_gitrev=a4997bf3d952f904bce824ee3e8f3e12e8524071
wrksrc=tinycc-${_gitrev:0:7}
build_style=gnu-configure
build_style=configure
configure_args="--prefix=/usr --libdir=\${prefix}/lib$XBPS_TARGET_WORDSIZE"
make_check_target="test"
hostmakedepends="perl"
short_desc="Tiny C Compiler"
@ -20,14 +21,9 @@ nocross=yes
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="ftbfs";;
*-musl) configure_args="--config-musl";;
*-musl) configure_args+=" --config-musl";;
esac
pre_configure() {
# Replace lib64 with lib
sed -i configure -e "s;lib64;lib;g"
}
do_build() {
# Can't use (many of) our CFLAGS or LDFLAGS
# because TCC is bootstrapped with the same flags