From 3cdf09f7056414f6eac493d447faaaf8d2854bd1 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 1 May 2019 13:22:28 +0200 Subject: [PATCH] atop: fix build error Some Makefile targets did not honor CFLAGS. This can lead to a SIGSEGV atop exeuctable. Signed-off-by: Toni Uhlig --- .../patches/010-makefile-missing-cflags.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 admin/atop/patches/010-makefile-missing-cflags.patch diff --git a/admin/atop/patches/010-makefile-missing-cflags.patch b/admin/atop/patches/010-makefile-missing-cflags.patch new file mode 100644 index 000000000..6754ff77c --- /dev/null +++ b/admin/atop/patches/010-makefile-missing-cflags.patch @@ -0,0 +1,22 @@ +diff --git a/Makefile b/Makefile +index 3bf5929..e065577 100644 +--- a/Makefile ++++ b/Makefile +@@ -32,7 +32,7 @@ VERS = $(shell ./atop -V 2>/dev/null| sed -e 's/^[^ ]* //' -e 's/ .*//') + all: atop atopsar atopacctd atopconvert + + atop: atop.o $(ALLMODS) Makefile +- $(CC) -c version.c ++ $(CC) $(CFLAGS) -c version.c + $(CC) atop.o $(ALLMODS) -o atop -lncurses -lz -lm -lrt $(LDFLAGS) + + atopsar: atop +@@ -45,7 +45,7 @@ atopconvert: atopconvert.o + $(CC) atopconvert.o -o atopconvert -lz $(LDFLAGS) + + netlink.o: netlink.c +- $(CC) -I. -Wall -c netlink.c ++ $(CC) $(CFLAGS) -I. -Wall -c netlink.c + + clean: + rm -f *.o atop atopacctd atopconvert