Fix cpu
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=665
This commit is contained in:
parent
9ef1a14cd0
commit
d5bab7c8a6
7
rpm.spec
7
rpm.spec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user