mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
slirp: Add -fvisibility=hidden to glib stub
On Linux, our stubbed glib functions were conflicting with the ones from real glib, which gets used by Qt when we're running on a GTK-based desktop. Avoid a crash by not exposing them.
This commit is contained in:
@ -62,4 +62,6 @@ elseif(HAIKU)
|
|||||||
target_Link_libraries(slirp PRIVATE network)
|
target_Link_libraries(slirp PRIVATE network)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
target_link_libraries(slirp PRIVATE resolv)
|
target_link_libraries(slirp PRIVATE resolv)
|
||||||
|
else()
|
||||||
|
set_source_files_properties(glib/glib.c PROPERTIES COMPILE_FLAGS -fvisibility=hidden)
|
||||||
endif()
|
endif()
|
||||||
|
Reference in New Issue
Block a user