diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-12-31 15:37:29 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | 28219b121a5e00b6d8fe6d4853caa9fedc8c8212 (patch) | |
tree | bb6b47d79da2609721ac87a595f459d2d66a335e /system/i8kutils/fix_Makefile.patch | |
parent | cc33834efff858fc86a0a3a73c9c1bc856176922 (diff) | |
download | slackbuilds-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/fix_Makefile.patch')
-rw-r--r-- | system/i8kutils/fix_Makefile.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/system/i8kutils/fix_Makefile.patch b/system/i8kutils/fix_Makefile.patch new file mode 100644 index 0000000000..38fc8d9e29 --- /dev/null +++ b/system/i8kutils/fix_Makefile.patch @@ -0,0 +1,29 @@ +diff -Naur i8kutils/Makefile i8kutils_new/Makefile +--- i8kutils/Makefile 2014-12-09 16:40:11.000000000 +0100 ++++ i8kutils_new/Makefile 2015-01-31 13:15:21.031912744 +0100 +@@ -14,16 +14,19 @@ + # General Public License for more details. + + ccflags-y = -Wall ++CC = gcc + + all: i8kctl probe_i8k_calls_time + +-i8kctl: i8kctl.c i8kctl.o +- gcc -Wall i8kctl.c -o i8kctl ++i8kctl: i8kctl.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -Wall i8kctl.c -o i8kctl + +-probe_i8k_calls_time: probe_i8k_calls_time.c +- gcc -Wall -c -g -DLIB i8kctl.c +- gcc -Wall -c -g -DLIB probe_i8k_calls_time.c +- gcc -o probe_i8k_calls_time i8kctl.o probe_i8k_calls_time.o ++i8kctl_DLIB.o: i8kctl.c ++ $(CC) $(CFLAGS) -Wall -c -g -DLIB i8kctl.c -o i8kctl_DLIB.o ++ ++probe_i8k_calls_time: i8kctl_DLIB.o probe_i8k_calls_time.c ++ $(CC) $(CFLAGS) -Wall -c -g -DLIB probe_i8k_calls_time.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -Wall -o probe_i8k_calls_time i8kctl_DLIB.o probe_i8k_calls_time.o + + i8k: + make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules |