Commit 32bddfab authored by Max Kellermann's avatar Max Kellermann

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
parent 1944c826
ver 0.23.11 (not yet released) ver 0.23.11 (not yet released)
* macOS: fix build failure "no archive members specified"
* Android/Windows * Android/Windows
- update OpenSSL to 3.0.7 - update OpenSSL to 3.0.7
......
...@@ -22,6 +22,10 @@ if libzzip_dep.found() ...@@ -22,6 +22,10 @@ if libzzip_dep.found()
found_archive_plugin = true found_archive_plugin = true
endif endif
if not found_archive_plugin
subdir_done()
endif
archive_plugins = static_library( archive_plugins = static_library(
'archive_plugins', 'archive_plugins',
archive_plugins_sources, archive_plugins_sources,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment