summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/opendoas/opendoas.SlackBuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/opendoas/opendoas.SlackBuild b/system/opendoas/opendoas.SlackBuild
index 879b14d8b1..6606982e3b 100644
--- a/system/opendoas/opendoas.SlackBuild
+++ b/system/opendoas/opendoas.SlackBuild
@@ -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