fix:[#2684] cmake hidden visibility for png_free

This commit is contained in:
Jarred Wilson 2025-04-01 12:49:37 +00:00
parent 9ee5d066a2
commit 85a5f09a7d

View File

@ -17,6 +17,8 @@ if (NOT CMAKE_BUILD_TYPE)
endif() endif()
project(shadPS4 CXX C ASM ${ADDITIONAL_LANGUAGES}) 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. # 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) if(UNIX AND NOT APPLE)