audio/klick: Fix build for -current.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-06-20 23:10:14 -04:00 committed by Willy Sudiarto Raharjo
parent 430e2cfd4c
commit 2215904e4c

View file

@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20170620 bkw: add -fpermissive to cflags, for -current's gcc7.
PRGNAM=klick
VERSION=${VERSION:-0.12.2}
BUILD=${BUILD:-1}
@ -56,7 +58,7 @@ find -L . \
OPTS="RUBBERBAND=${RUBBERBAND:-no} OSC=${LIBLO:-yes}"
# hate scons. This mess forces CFLAGS.
SCONSCFLAGS=$( echo "$SLKCFLAGS" | sed "s/\([^ ]\+\)/'\1', /g" )
SCONSCFLAGS=$( echo "$SLKCFLAGS -fpermissive" | sed "s/\([^ ]\+\)/'\1', /g" )
sed -i "s/'-O2', /$SCONSCFLAGS/" SConstruct
scons $OPTS PREFIX=/usr