automake: always use correct path for aclocal.real
authorLeonardo Mörlein <me@irrelefant.net>
Mon, 9 Aug 2021 22:48:40 +0000 (00:48 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 14 Jul 2022 10:57:12 +0000 (12:57 +0200)
Before this commit, it was assumed that aclocal.real is in the PATH. While
this was fine for the normal build workflow, this led to some issues if

    make TOPDIR="$(pwd)" -C "$pkgdir" compile

was called manually. The command failed with:

    /home/.../openwrt/staging_dir/host/bin/aclocal: line 2: aclocal.real: command not found
    autoreconf: /home/.../openwrt/staging_dir/host/bin/aclocal failed with exit status: 127

After the commit, the package is built sucessfully.

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
tools/automake/files/aclocal

index a60df10c4269296d0d9e3da31e02852b403542da..689cb041f521f42f767cf6385f0d26b1ae0124ac 100755 (executable)
@@ -1,2 +1,2 @@
 #!/usr/bin/env sh
-aclocal.real $ACLOCAL_INCLUDE $@
+${STAGING_DIR_HOST}/bin/aclocal.real $ACLOCAL_INCLUDE $@