Files
kstuff/ps5-kstuff/build_libtomcrypt.sh
T

4 lines
462 B
Bash

cd libtomcrypt
x86intrin_path="$(dirname "$(gcc -E -x c - <<< '#include <x86intrin.h>' | grep '/x86intrin\.h"' | head -1 | cut -d '"' -f 2-2)")"
for i in clean -j$(nproc); do make CC='gcc -nostdlib -nostdinc -isystem /proc/'$$'/cwd/../../freebsd-headers -isystem '"'${x86intrin_path//"'"/"'"'"'"'"'"'"'"}'"' -O3 -march=znver2 -g -ffreestanding -ffunction-sections -fdata-sections -fPIE -fPIC -fvisibility=hidden -include /proc/'$$'/cwd/../overrides.h' $i; done