make arm gnueabi work
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=644
This commit is contained in:
parent
573af0b198
commit
f380afba9e
11
rpm.spec
11
rpm.spec
@ -240,17 +240,12 @@ export LDFLAGS="-Wl,-Bsymbolic-functions -ffunction-sections"
|
||||
export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
|
||||
%endif
|
||||
|
||||
%ifarch %arm
|
||||
BUILDTARGET="--build=%{_target_cpu}-suse-linux-gnueabi"
|
||||
%elifarch x86_64 %x86_64
|
||||
BUILDTARGET="--build=x86_64-suse-linux"
|
||||
%else
|
||||
BUILDTARGET="--build=%{_target_cpu}-suse-linux"
|
||||
%endif
|
||||
|
||||
mkdir _build
|
||||
cd _build
|
||||
cmake .. \
|
||||
%ifarch %arm
|
||||
-DRPMCANONGNU=-gnueabi \
|
||||
%endif
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
||||
-DCMAKE_INSTALL_MANDIR:PATH=share/man \
|
||||
-DCMAKE_INSTALL_INFODIR:PATH=share/info \
|
||||
|
Loading…
x
Reference in New Issue
Block a user