system/opendoas: Workaround internal usage of the $BUILD variable.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
K. Eugene Carlson 2021-08-10 11:25:39 +02:00 committed by Willy Sudiarto Raharjo
parent 841ae7d172
commit 574d0b9d89
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -97,6 +97,11 @@ if [ ! -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
SHADOW="--with-shadow"
fi
# Passing BUILD from the command line otherwise causes the build to fail (the
# configure script uses the variable name).
SBBUILD=$BUILD
unset BUILD
# No CXXFLAGS
CFLAGS="$SLKCFLAGS" \
./configure \
@ -108,6 +113,8 @@ CFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
BUILD=$SBBUILD
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true