<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fix cmake call for openemebedded builds (and Fedora)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105852#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Fix cmake call for openemebedded builds (and Fedora)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105852">bug 105852</a>
              from <span class="vcard"><a class="email" href="mailto:schnitzeltony@gmail.com" title="Andreas Müller <schnitzeltony@gmail.com>"> <span class="fn">Andreas Müller</span></a>
</span></b>
        <pre>Don't think it's only my problem - that's why I opened a bug here.

Looked into CMakeCache.txt (with patch applied / OE toolchain has NO entry for
CMAKE_CXX_FLAGS_RELWITHDEBINFO) and find

CMAKE_CXX_FLAGS:STRING= -march=armv7ve -mthumb -mfpu=neon-vfpv4
-mfloat-abi=hard -mcpu=cortex-a7  --sysroot=<path> <...>

...
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

This is not much! That looks to me that CMake treats
CMAKE_CXX_FLAGS_RELWITHDEBINFO as append of CMAKE_CXX_FLAGS. I think the whole
flag dance is not designed as CMake expects it. It should be

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-check-new
-fno-common -D_DEFAULT_SOURCE")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_CXX_FLAGS_RELEASE        "-O2 -DNDEBUG")
...

I tried to find hints on this on CMake docs but without success. End of the
story.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>