From 7fb6beed01bc1a59438b8b2a9b34b2dba296e553 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 1 Sep 2024 08:00:00 +0000 Subject: meson: build Linux-PAM using meson On my non-representative hardware, the full build using autotools (./autogen.sh && CFLAGS=-O2 ./configure && make -j`nproc` && make -j`nproc` install) takes about 45 seconds. On the same hardware, the full build using meson (meson setup -Doptimization=2 dir && meson compile -C dir && meson install -C dir) takes just about 7.5 seconds. --- aux/chdir_meson_build_subdir.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 aux/chdir_meson_build_subdir.sh (limited to 'aux/chdir_meson_build_subdir.sh') diff --git a/aux/chdir_meson_build_subdir.sh b/aux/chdir_meson_build_subdir.sh new file mode 100755 index 00000000..69c32fcb --- /dev/null +++ b/aux/chdir_meson_build_subdir.sh @@ -0,0 +1,6 @@ +#!/bin/sh -efu + +exe=$1; shift +exe=$(readlink -ev -- "$exe") +cd "$MESON_BUILD_SUBDIR" +exec "$exe" "$@" -- cgit v1.2.3