Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416261 - games-strategy/widelands does not respect CXXFLAGS (-O3/-O2 forced)
Summary: games-strategy/widelands does not respect CXXFLAGS (-O3/-O2 forced)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-05-16 12:37 UTC by Julian Ospald
Modified: 2012-05-16 14:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
widelands-0.17-cxxflags.patch (widelands-0.17-cxxflags.patch,1.69 KB, patch)
2012-05-16 12:37 UTC, Julian Ospald
Details | Diff
widelands-0.16-cxxflags.patch (widelands-0.16-cxxflags.patch,728 bytes, patch)
2012-05-16 12:38 UTC, Julian Ospald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Ospald 2012-05-16 12:37:51 UTC
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
Comment 1 Julian Ospald 2012-05-16 12:38:05 UTC
Created attachment 312013 [details, diff]
widelands-0.16-cxxflags.patch
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2012-05-16 12:44:37 UTC
Feel free to commit it. For 0.17 it looks correct. 0.16 is even easier :)
Comment 3 Julian Ospald 2012-05-16 14:51:20 UTC
+  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