summaryrefslogtreecommitdiffstats
path: root/system/i8kutils/i8kutils.SlackBuild
diff options
context:
space:
mode:
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 \