Michael Schröder 2024-02-09 11:59:55 +00:00 committed by Git OBS Bridge
parent 9ef1a14cd0
commit d5bab7c8a6

View File

@ -242,9 +242,16 @@ export LDFLAGS="-Wl,-Bsymbolic-functions -ffunction-sections"
export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
%endif
cpu="%{_target_cpu}"
# convert to gnu style cpu version, see config.sub
%ifarch ppc ppc64 ppc64le
cpu="${cpu/#ppc/powerpc}"
%endif
mkdir _build
cd _build
cmake .. \
-DRPM_HOST_SYSTEM_CPU="$cpu" \
%ifarch %arm
-DRPM_HOST_SYSTEM_ABI=gnueabi \
%endif