restbed
restbed copied to clipboard
Enable build with -fvisibility=hidden
I tried to build and run a program with -fsanitize=cfi (and -flto=thin -fvisibility=hidden -fno-sanitize-trap=cfi) according to the clang documentation.
So with this option, all class are by default hidden.
According to GCC documentation, the C++ visibility support should be __attribute__ ((visibility ("default"))) for *_EXPORT with Linux.