diff --git a/inkscape.changes b/inkscape.changes index 29d38b9..4a271c6 100644 --- a/inkscape.changes +++ b/inkscape.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 14 15:49:03 UTC 2012 - dmueller@suse.com + +- Reduce memory usage during linking on ARM to let the build + succeed. + ------------------------------------------------------------------- Wed Sep 12 15:40:36 UTC 2012 - malcolmlewis@opensuse.org diff --git a/inkscape.spec b/inkscape.spec index 08b9960..8f6857b 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -165,8 +165,13 @@ Inkscape is a vector illustration program for the GNOME desktop. %patch4 -p1 %build -export CFLAGS="%{optflags} -fno-strict-aliasing" -export CXXFLAGS="%{optflags} -fno-strict-aliasing" +RPM_OPT_FLAGS="%{optflags}" +%ifarch %arm +RPM_OPT_FLAGS="${RPM_OPT_FLAGS/-g/}" +export LDFLAGS+="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" +%endif +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" # We're building without perl support for now... %configure\ --with-python\