diff --git a/CMakeLists.txt b/CMakeLists.txt index d50dc187d..be0ea844e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ if (NOT CMAKE_BUILD_TYPE) endif() project(shadPS4 CXX C ASM ${ADDITIONAL_LANGUAGES}) +set(CMAKE_CXX_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) # Forcing PIE makes sure that the base address is high enough so that it doesn't clash with the PS4 memory. if(UNIX AND NOT APPLE)