diff --git a/srcpkgs/tcc/template b/srcpkgs/tcc/template index b27a0750ab7..5d2da178af7 100644 --- a/srcpkgs/tcc/template +++ b/srcpkgs/tcc/template @@ -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