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?
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!
--
David Demelier
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]