mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add compiler flags to hide all symbols by default.
This commit is contained in:
@@ -61,6 +61,7 @@ add_definitions(-DQT_NO_KEYWORDS -DQT_NO_EXCEPTIONS -DQT_NO_STL -DQT_STRICT_ITER
|
|||||||
add_gcc_compiler_flags("-fno-common -fstack-protector -D_FORTIFY_SOURCE=2")
|
add_gcc_compiler_flags("-fno-common -fstack-protector -D_FORTIFY_SOURCE=2")
|
||||||
add_gcc_compiler_flags("-Wall -Wextra -Wundef -Wpointer-arith -Wno-long-long")
|
add_gcc_compiler_flags("-Wall -Wextra -Wundef -Wpointer-arith -Wno-long-long")
|
||||||
add_gcc_compiler_flags("-Wformat=2 -Wmissing-format-attribute")
|
add_gcc_compiler_flags("-Wformat=2 -Wmissing-format-attribute")
|
||||||
|
add_gcc_compiler_flags("-fvisibility=hidden -fvisibility-inlines-hidden")
|
||||||
|
|
||||||
add_gcc_compiler_cxxflags("-fno-exceptions -fno-rtti")
|
add_gcc_compiler_cxxflags("-fno-exceptions -fno-rtti")
|
||||||
add_gcc_compiler_cxxflags("-Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual")
|
add_gcc_compiler_cxxflags("-Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual")
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ template <> class QStaticAssertFailure<true> {};
|
|||||||
# define KEEPASSX_EXPORT Q_DECL_IMPORT
|
# define KEEPASSX_EXPORT Q_DECL_IMPORT
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define KEEPASSX_EXPORT
|
# define KEEPASSX_EXPORT Q_DECL_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // KEEPASSX_GLOBAL_H
|
#endif // KEEPASSX_GLOBAL_H
|
||||||
|
|||||||
Reference in New Issue
Block a user