diff --git a/srcpkgs/stress-ng/patches/cross.patch b/srcpkgs/stress-ng/patches/cross.patch new file mode 100644 index 00000000000..d389a23e846 --- /dev/null +++ b/srcpkgs/stress-ng/patches/cross.patch @@ -0,0 +1,11 @@ +--- a/Makefile.config ++++ b/Makefile.config +@@ -310,7 +310,7 @@ + + compiler: configdir + @echo "checking compiler ..." +- @$(CC) test/test-compiler.c -o test/test-compiler ++ @$(HOST_CC) test/test-compiler.c -o test/test-compiler + @echo "" > $(CONFIGS)/$$(./test/test-compiler) + @rm -f test/test-compiler + $(call check,test-glibc,HAVE_GLIBC,using glibc) diff --git a/srcpkgs/stress-ng/template b/srcpkgs/stress-ng/template index c77ba2ecefd..32b027f5670 100644 --- a/srcpkgs/stress-ng/template +++ b/srcpkgs/stress-ng/template @@ -1,6 +1,6 @@ # Template file for 'stress-ng' pkgname=stress-ng -version=0.15.08 +version=0.16.00 revision=1 build_style=gnu-makefile make_use_env=1 @@ -9,7 +9,11 @@ maintainer="Leah Neukirchen " license="GPL-2.0-or-later" homepage="https://github.com/ColinIanKing/stress-ng/" distfiles="https://github.com/ColinIanKing/stress-ng/archive/refs/tags/V${version}.tar.gz" -checksum=aca526f434bcf27fcf62da57f70458c7736899318b570bce0ee3da05a51cb84a +checksum=f3d99281fe2f9695d627608a3aa610dfd6f3fa6eb1a3d7c457b09ff6defd0f78 + +pre_build() { + export HOST_CC="$CC_FOR_BUILD" +} if [ "$XBPS_TARGET_LIBC" = "musl" ]; then makedepends+=" musl-legacy-compat"