Created attachment 312011 [details, diff] widelands-0.17-cxxflags.patch cmake --no-warn-unused-cli -C /var/tmp/portage/games-strategy/widelands-0.17/work/widelands-0.17_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr/share/games/widelands -DWL_VERSION_STANDARD=true -DWL_INSTALL_PREFIX=/usr/games -DWL_INSTALL_DATADIR=/usr/share/games/widelands -DWL_INSTALL_LOCALEDIR=/usr/share/games/widelands/locale -DWL_INSTALL_BINDIR=/usr/games/bin -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/games-strategy/widelands-0.17/work/widelands-0.17_build/gentoo_rules.cmake /var/tmp/portage/games-strategy/widelands-0.17/work/widelands-build17-src Not searching for unused variables given on the command line. loading initial cache file /var/tmp/portage/games-strategy/widelands-0.17/work/widelands-0.17_build/gentoo_common_config.cmake -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Disabled Unit Tests -- Boost version: 1.48.0 -- Found the following Boost libraries: -- signals -- Using compiler flags: -O3 -DNDEBUG -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib64/libX11.so -- Found OpenGL: /usr/lib64/libGL.so -- Found PythonInterp: /usr/bin/python (found version "2.7.2") -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.5") -- Found PNG: /usr/lib64/libpng.so -- SDLMAIN_LIBRARY is /usr/lib64/libSDLmain.a -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found Lua51: /usr/lib64/liblua.so;/usr/lib64/libm.so -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Doxygen not found, disabling 'make doc' -- <<< Gentoo configuration >>> Build type Release Install path /usr/share/games/widelands Compiler flags: C -march=native -O2 -pipe -ggdb C++ -march=native -O2 -pipe -ggdb Linker flags: Executable -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu Module -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu Shared -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu [...] _64-pc-linux-gnu-g++ -DUSE_OPENGL -march=native -O2 -pipe -ggdb -O3 -DNDEBUG -I/var/tmp/portage/games-strategy/widelands-0.17/work/widelands-build17-src/src -I/var/tmp/portage/games-strategy/widelands-0.17/work/widelands-0.17_build/src -I/usr/include/SDL -o CMakeFiles/widelands_all.dir/ui_basic/tabpanel.cc.o -c /var/tmp/portage/games-strategy/widelands-0.17/work/widelands-build17-src/src/ui_basic/tabpanel.cc ###### games-strategy/widelands-0.16 forces -O2
Created attachment 312013 [details, diff] widelands-0.16-cxxflags.patch
Feel free to commit it. For 0.17 it looks correct. 0.16 is even easier :)
+ 16 May 2012; Julian Ospald <hasufell@gentoo.org> widelands-0.16.ebuild, + +files/widelands-0.16-cxxflags.patch, widelands-0.17.ebuild, + +files/widelands-0.17-cxxflags.patch: + respect CXXFLAGS wrt #416261