On 01/11/2018 11:45 AM, David Demelier wrote:
On Thu, Jan 11, 2018 at 11:21:56AM +0100, Patrick Monnerat wrote:
I also encountered this problem before and I fixed it by respecting the
RPM_OPT_FLAGS. Before cmake, use:
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}"
Is there a place where you see that we must use this variable?
This has no relation to your problem but there is a directive in the
packaging guidelines:
https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
Anyway, it worked, I changed the CMake invocation to:
cmake ... \
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
It built fine, thanks!
You're welcome !
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx