mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
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:
parent
841ae7d172
commit
574d0b9d89
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue