Hi, until now I was using cryptopp 8.2.0 on Ubuntu 18.04 and builting it with CXXFLAGS="-DNDEBUG -O3 -mfunction-return=thunk -mindirect-branch=thunk" make static
I tried to build it on Ubuntu 22.04: - Linux version 5.15.0-82-generic - gcc 11.4.0 and encountered the followinf error: /usr/include/c++/11/cstddef:126:48: error: '-mindirect-branch' and 'fcf-protection' are not compatible *Do you have any idea where it comes from ?* I tried to compile with the following options instead: CXXFLAGS="-DNDEBUG -O3 -fcf-protection=none -mfunction-return=thunk -mindirect-branch=thunk" make static OR CXXFLAGS="-DNDEBUG -O3 -mfunction-return=thunk-extern -mindirect-branch=thunk-extern" make static which succeedeed. *Do you have any recommandation on the best thing to do ?* Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/108eaee0-c1a4-4296-a5f3-0a1e217fc819n%40googlegroups.com.