]> git.ipfire.org Git - thirdparty/util-linux.git/commit
meson: fix static builds creating conflicting targets
authorEli Schwartz <eschwartz@archlinux.org>
Thu, 14 Apr 2022 14:28:29 +0000 (10:28 -0400)
committerEli Schwartz <eschwartz@archlinux.org>
Thu, 14 Apr 2022 14:28:29 +0000 (10:28 -0400)
commit1c68d580d4969acd496916d8f41540e6d4dd0f81
treea55bb56bd4b7a3289f21a35d28efe6eb2d415008
parente928e8ed61996d46be4bfd36367c0e1c798f84d7
meson: fix static builds creating conflicting targets

Meson has a global option -Ddefault_library which determines whether to
build all generic libraries as static, shared, or both. When creating a
library of the same name twice, once with library() and once with either
shared_library() or static_library(), some values for -Ddefault_library
will result in a fatal configuration error because multiple rules try to
create libXXX.a or libXXX.so

The reason for creating these additional copies of the library is in
order to optionally build some programs as both "prog" and "prog.static"
(and the latter is, of course, static). So depending on the
default_library value may not be desirable.
libfdisk/meson.build
libmount/meson.build