[Poppler-bugs] [Bug 105852] Fix cmake call for openemebedded builds (and Fedora)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 3 22:57:42 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105852

--- Comment #8 from Andreas Müller <schnitzeltony at gmail.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180403/6b830354/attachment.html>


More information about the Poppler-bugs mailing list