From 32bddfabea39136f07b7f0ec8b8b00c89a470e6f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 3 Nov 2022 20:34:35 +0100 Subject: [PATCH] archive/plugins/meson.build: do not generate empty library If no archive library was found, return from the "plugins" directory without creating "libarchive_plugins.a". Empty static libraries are unsupported on some operating systems such as macOS. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1650 --- NEWS | 1 + src/archive/plugins/meson.build | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/NEWS b/NEWS index 0e136c7e0..d3e2ed88a 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ ver 0.23.11 (not yet released) +* macOS: fix build failure "no archive members specified" * Android/Windows - update OpenSSL to 3.0.7 diff --git a/src/archive/plugins/meson.build b/src/archive/plugins/meson.build index f4ef98b65..ff58a3acc 100644 --- a/src/archive/plugins/meson.build +++ b/src/archive/plugins/meson.build @@ -22,6 +22,10 @@ if libzzip_dep.found() found_archive_plugin = true endif +if not found_archive_plugin + subdir_done() +endif + archive_plugins = static_library( 'archive_plugins', archive_plugins_sources,