From e18e581447f6dbdac28469eab824611bc42671bfff59264bb84e316f1a4c3df4 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 4 Nov 2020 17:02:12 +0000 Subject: [PATCH] Accepting request 846041 from home:lnussel:usrmove - LFS fix for 32bit arch builds (gh#ninja-build/ninja#829) OBS-URL: https://build.opensuse.org/request/show/846041 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ninja?expand=0&rev=51 --- ninja.changes | 5 +++++ ninja.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ninja.changes b/ninja.changes index 59759f3..dee4091 100644 --- a/ninja.changes +++ b/ninja.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 4 16:33:12 UTC 2020 - Ludwig Nussel + +- LFS fix for 32bit arch builds (gh#ninja-build/ninja#829) + ------------------------------------------------------------------- Mon Aug 24 20:25:43 UTC 2020 - Dirk Mueller diff --git a/ninja.spec b/ninja.spec index 9e6ca90..50bef3f 100644 --- a/ninja.spec +++ b/ninja.spec @@ -40,7 +40,10 @@ building them, quickly. %build export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags}" +%if "%__isa_bits" == "32" +CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" +%endif +export CXXFLAGS="$CFLAGS" python3 ./configure.py --bootstrap --verbose %install