From 85a5f09a7d488bc255c695a57805af3a277fb3bd Mon Sep 17 00:00:00 2001 From: Jarred Wilson Date: Tue, 1 Apr 2025 12:49:37 +0000 Subject: [PATCH] fix:[#2684] cmake hidden visibility for png_free --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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)