https://bugzilla.redhat.com/show_bug.cgi?id=1366881
--- Comment #10 from Luya Tshimbalanga luya@fedoraproject.org --- Created attachment 1192486 --> https://bugzilla.redhat.com/attachment.cgi?id=1192486&action=edit patch form makefile
(In reply to Igor Gnatenko from comment #9)
- use gcc-c++ for building (add `gcc` into `%make_build` line)
Done
- replace CFLAGS with CXXFLAGS
Done, I add to declare -std=c++11 to remove the error.
- it still ignores CXXFLAGS (Makefile needs patching)
- verbose compilation is not enabled (I mean to show what and how has been
executed). Remove `@` in lines like `@$(LEX)`, `@$(CXX)`, etc.
Patched added. However it led to 3 errors.
I found a suggestion from llvm-config # Using http://llvm.org/docs/CommandGuide/llvm-config.html %make_build gcc 'llvm-config --cppflags --ldflags'
The failure occurred on those lines: t global scope: cc1plus: error: unrecognized command line option '-Wno-deprecated-register' [-Werror] cc1plus: error: unrecognized command line option '-Wno-c99-extensions' [-Werror] cc1plus: all warnings being treated as errors
- Trailing dot is missing in description
Added.