automake: always use correct path for aclocal.real

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>
(cherry picked from commit ffd9bd7b9b)
This commit is contained in:
Leonardo Mörlein 2021-08-10 00:48:40 +02:00 committed by Tianling Shen
parent 323b27d308
commit c04880f640
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -1,2 +1,2 @@
#!/usr/bin/env sh
aclocal.real $ACLOCAL_INCLUDE $@
${STAGING_DIR_HOST}/bin/aclocal.real $ACLOCAL_INCLUDE $@