summaryrefslogtreecommitdiff
path: root/system/i8kutils/i8kutils.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-12-31 15:37:29 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit28219b121a5e00b6d8fe6d4853caa9fedc8c8212 (patch)
treebb6b47d79da2609721ac87a595f459d2d66a335e /system/i8kutils/i8kutils.SlackBuild
parentcc33834efff858fc86a0a3a73c9c1bc856176922 (diff)
downloadslackbuilds-28219b121a5e00b6d8fe6d4853caa9fedc8c8212.tar.gz
system/i8kutils: Patched to fix build with gcc-5.3.0.
Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/i8kutils/i8kutils.SlackBuild')
-rw-r--r--system/i8kutils/i8kutils.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/system/i8kutils/i8kutils.SlackBuild b/system/i8kutils/i8kutils.SlackBuild
index 09d3003740..d3c83313ba 100644
--- a/system/i8kutils/i8kutils.SlackBuild
+++ b/system/i8kutils/i8kutils.SlackBuild
@@ -72,8 +72,11 @@ find -L . \
# Take care of creating required directory tree into $PKG, since Makefile doesn't
mkdir -p $PKG/{etc,usr/{bin,man/man1}}
-# Override Makefile CFLAGS with ours
-make CFLAGS="$SLKCFLAGS"
+# Two fixes from Arch Linux (the first one is needed to make CFLAGS work)
+patch -p1 < $CWD/fix_Makefile.patch
+patch -p1 < $CWD/fix_i8kmon_toggle_fan.patch
+
+make CFLAGS="$SLKCFLAGS -std=gnu89"
cp -a \
i8kctl i8kfan i8kmon probe_i8k_calls_time \