diff --git a/src/frontend/libslirp/CMakeLists.txt b/src/frontend/libslirp/CMakeLists.txt index cb009a6cad..67b8ac78db 100644 --- a/src/frontend/libslirp/CMakeLists.txt +++ b/src/frontend/libslirp/CMakeLists.txt @@ -62,4 +62,6 @@ elseif(HAIKU) target_Link_libraries(slirp PRIVATE network) elseif(APPLE) target_link_libraries(slirp PRIVATE resolv) +else() + set_source_files_properties(glib/glib.c PROPERTIES COMPILE_FLAGS -fvisibility=hidden) endif()