aboutsummaryrefslogtreecommitdiff
path: root/desktop/dwm
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryanpcmcquen@member.fsf.org>2017-01-16 07:01:06 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-21 07:04:53 +0700
commit108094b1a3e203115e7f5ae1e9c51e10bbb4cdcc (patch)
tree3ea98cd76f7c1c6c96b51f0be0111aa5efd53a32 /desktop/dwm
parentb9dd4f8f453fc3c8488cce547bf20a4fe2813868 (diff)
desktop/dwm: Fix compiler options. i486 => i586.
Signed-off-by: Ryan P.C. McQuen <ryanpcmcquen@member.fsf.org>
Diffstat (limited to 'desktop/dwm')
-rw-r--r--desktop/dwm/dwm.SlackBuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/desktop/dwm/dwm.SlackBuild b/desktop/dwm/dwm.SlackBuild
index 1da11714425a..38c6b69c53ed 100644
--- a/desktop/dwm/dwm.SlackBuild
+++ b/desktop/dwm/dwm.SlackBuild
@@ -34,12 +34,12 @@
PRGNAM=dwm
VERSION=${VERSION:-6.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -50,8 +50,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -90,6 +90,12 @@ find -L . \
# patch -p0 < $CWD/patches/$i
#done
+## Fix options for our compilers,
+## thanks to Brenton Earl.
+sed -i \
+ -e "s,-D_BSD_SOURCE,-D_DEFAULT_SOURCE," \
+ -e "s,-Os,$SLKCFLAGS," \
+ config.mk
make \
OPTS="$SLKCFLAGS" \