void-packages/srcpkgs/cpuburn/patches/02-m32.patch
Đoàn Trần Công Danh 301fe37777 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
2022-12-28 20:51:51 +01:00

7 lines
170 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,3 @@
all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
.S:
- gcc -s -nostdlib -o $@ $<
+ gcc -static -m32 -s -nostdlib -o $@ $<