[opensuse-packaging] Fix build with gcc5
Hello
I try to upgrade games/7kaa to 2.14.5
I have make a issue where have me Upstream helped with patch
https://github.com/the3dfxdude/7kaa/issues/48
I use now
# PATCH-FIX-OPENSUSE - 7kaa-2.14.5.patch --
https://github.com/the3dfxdude/7kaa/issues/48
Patch0: %{name}-2.14.5.patch
Get build failures when use default
make %{?_smp_mflags}
or
export CXXFLAGS=" with booth Options
make
[ 144s] I: Program is likely to break with new gcc. Try
-fno-strict-aliasing. [ 144s] W: 7kaa strict-aliasing-punning
OERRCTRL.cpp:286, 327, 357, 397, 483 [ 144s] W: 7kaa
strict-aliasing-punning OMP_CRC.cpp:98, 121, 164, 196, 219, 242, 265,
310, 343, 376, 399, 437, 460, 486, 525, 548, 571, 604, 636, 672, 707,
739, 762, 788, 811, 835, 856, 877 [ 144s] W: 7kaa
strict-aliasing-punning OREMOTE2.cpp:333, 367, 444, 460 [ 144s] W:
7kaa strict-aliasing-punning OREMOTEM.cpp:345, 383, 480, 1760, 1762,
2701 [ 144s] W: 7kaa strict-aliasing-punning OSYS.cpp:2450 [ 144s] W:
7kaa strict-aliasing-punning OUNITI.cpp:200 [ 144s] [ 144s] I:
Statement is overflowing a buffer [ 144s] E: 7kaa
bufferoverflow /usr/include/bits/stdio2.h:65
When use without any make
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
or
export CXXFLAGS="%{?_smp_mflags} -fno-strict-aliasing"
GCC5 build good.
What is better to use with %{optflags} or %{?_smp_mflags}
--
nemysis / Rusmir Duško
On Friday 2015-09-25 21:12, Rusmir Duško wrote:
What is better to use with %{optflags} or %{?_smp_mflags}
Those are two totally different things. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Fri, 25 Sep 2015 22:19:15 +0200 (CEST)
Jan Engelhardt
On Friday 2015-09-25 21:12, Rusmir Duško wrote:
What is better to use with %{optflags} or %{?_smp_mflags}
Those are two totally different things.
I use now
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
because with %{?_smp_mflags} get -j 8
and have sent Request 333807
--
nemysis / Rusmir Duško
participants (2)
-
Jan Engelhardt
-
Rusmir Duško