There is no build tree and packages are used, so it cannot work. Unlikely
that static linking has been set for those builds anyway.
Fixes https://github.com/systemd/systemd/issues/19955
fi
local size=500
- if meson configure "${BUILD_DIR:?}" | grep 'static-lib\|standalone-binaries' | awk '{ print $2 }' | grep -q 'true'; then
- size=$((size+=200))
- fi
- if meson configure "${BUILD_DIR:?}" | grep 'link-.*-shared' | awk '{ print $2 }' | grep -q 'false'; then
- size=$((size+=200))
+ if [ -z "$NO_BUILD" ]; then
+ if meson configure "${BUILD_DIR:?}" | grep 'static-lib\|standalone-binaries' | awk '{ print $2 }' | grep -q 'true'; then
+ size=$((size+=200))
+ fi
+ if meson configure "${BUILD_DIR:?}" | grep 'link-.*-shared' | awk '{ print $2 }' | grep -q 'false'; then
+ size=$((size+=200))
+ fi
fi
if [[ "$STRIP_BINARIES" = "no" ]]; then
size=$((4 * size))