cpuburn: build statically

The status quote of cpuburn is always built for 32bits on x86_64,
which requires dynamic linker for 32 bit system.

On x86-64 system, we can workaround by depends on glibc-32bit.
However, we don't have that luxury on x86_64-musl system.

Since `cpuburn` doesn't use any features from libc and/or
dynamic linker, we can simply build static instead.

Fix #41307
This commit is contained in:
Đoàn Trần Công Danh 2022-12-28 21:19:34 +07:00 committed by Leah Neukirchen
parent 5024cb1bf4
commit 301fe37777
2 changed files with 2 additions and 2 deletions

View File

@ -4,4 +4,4 @@
all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
.S:
- gcc -s -nostdlib -o $@ $<
+ gcc -m32 -s -nostdlib -o $@ $<
+ gcc -static -m32 -s -nostdlib -o $@ $<

View File

@ -1,7 +1,7 @@
# Template file for 'cpuburn'
pkgname=cpuburn
version=1.4a
revision=4
revision=5
archs="armv6l* armv7l* i686* x86_64*"
short_desc="Collection of programs to put heavy load on CPU"
maintainer="Leah Neukirchen <leah@vuxu.org>"