From 21025f69757d1331fdd8ea89911205936224440c Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Mon, 11 Mar 2024 07:18:15 -0500 Subject: [PATCH] libs: Don't allow static libraries to be built Static libraries have no namespacing, so our "private" symbols become global. This results in functions like os_create_anonymous_file() crashing into functions of the same name in multiple projects. Since our test suite fails for static builds already, it's probably a clear indication that they're not well tested - so let's just force everything to be shared instead of trying to fix up static support. Signed-off-by: Derek Foreman --- cursor/meson.build | 2 +- egl/meson.build | 2 +- src/meson.build | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cursor/meson.build b/cursor/meson.build index f7d82e4e..c04beba1 100644 --- a/cursor/meson.build +++ b/cursor/meson.build @@ -12,7 +12,7 @@ if wayland_version[0] != '1' error('We probably need to bump the SONAME of libwayland-cursor') endif -wayland_cursor = library( +wayland_cursor = shared_library( 'wayland-cursor', sources: [ 'wayland-cursor.c', diff --git a/egl/meson.build b/egl/meson.build index 5c62ac1e..fbf16ab7 100644 --- a/egl/meson.build +++ b/egl/meson.build @@ -1,4 +1,4 @@ -wayland_egl = library( +wayland_egl = shared_library( 'wayland-egl', sources: [ 'wayland-egl.c', diff --git a/src/meson.build b/src/meson.build index 5d04334e..906fa6e4 100644 --- a/src/meson.build +++ b/src/meson.build @@ -170,7 +170,7 @@ if get_option('libraries') error('We probably need to bump the SONAME of libwayland-server and -client') endif - wayland_server = library( + wayland_server = shared_library( 'wayland-server', sources: [ wayland_server_protocol_core_h, @@ -222,7 +222,7 @@ if get_option('libraries') meson.override_dependency('wayland-server', wayland_server_dep) endif - wayland_client = library( + wayland_client = shared_library( 'wayland-client', sources: [ wayland_client_protocol_core_h,