Skip to content
  • Eli Schwartz's avatar
    build: link vercmp with a static copy of libalpm · 477a66cd
    Eli Schwartz authored and Allan McRae's avatar Allan McRae committed
    
    
    This has historically been the case in autotools since we want vercmp to
    not break mid-transaction in an install script.
    
    For convenience, we create libalpm.a and use this to optionally generate
    libalpm.so (when not configured with -Dbuildstatic=true) as well as to
    link any binary which explicitly wishes to be built statically "with
    libalpm", but does not care where a function is defined. meson then
    treats this correctly: it builds the object file only once for both
    libraries, and the compiler strips out unused functionality from the
    final static binary.
    
    Currently the only binary which requires this is vercmp.
    
    Fixes FS#61719
    
    Signed-off-by: default avatarEli Schwartz <eschwartz@archlinux.org>
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    477a66cd