Commit c0da1ba1 authored by Eli Schwartz's avatar Eli Schwartz Committed by Allan McRae
Browse files

meson: fix libcommon being publicly exposed as a static link dependency

libcommon isn't even installed, so that means libalpm.a (if installed)
is fatally broken as it misses objects. The problem is that meson
doesn't handle this case correctly:

Work around this by manually extracting libcommon's .o files into the
list of objects used to create libalpm.

Signed-off-by: Eli Schwartz's avatarEli Schwartz <>
Signed-off-by: Allan McRae's avatarAllan McRae <>
parent de6249ce
......@@ -317,9 +317,10 @@ libcommon = static_library(
libalpm_a = static_library(
objects : libcommon.extract_all_objects(),
include_directories : includes,
dependencies : [crypto_provider, libarchive, libcurl, gpgme],
link_with : [libcommon],
install : true)
if get_option('default_library') != 'static'
......@@ -336,7 +337,6 @@ install_headers(
# TODO: libs.private seem quite wrong here
pkgconfig = import('pkgconfig')
Supports Markdown
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