diff options
Diffstat (limited to 'sys-process/atop/files/atop-2.0.2-build.patch')
-rw-r--r-- | sys-process/atop/files/atop-2.0.2-build.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-process/atop/files/atop-2.0.2-build.patch b/sys-process/atop/files/atop-2.0.2-build.patch new file mode 100644 index 000000000000..a2a6b43a44cf --- /dev/null +++ b/sys-process/atop/files/atop-2.0.2-build.patch @@ -0,0 +1,20 @@ +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,7 @@ ROTPATH = /etc/logrotate.d + PMPATH1 = /usr/lib/pm-utils/sleep.d + PMPATH2 = /usr/lib64/pm-utils/sleep.d + +-CFLAGS += -O2 -I. -Wall # -DHTTPSTATS ++CFLAGS += -I. -Wall # -DHTTPSTATS + OBJMOD0 = version.o + OBJMOD1 = various.o deviate.o procdbase.o + OBJMOD2 = acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o +@@ -28,7 +28,7 @@ + all: atop atopsar + + atop: atop.o $(ALLMODS) Makefile +- $(CC) atop.o $(ALLMODS) -o atop -lncurses -lm -lz -lrt ++ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(shell ${PKG_CONFIG} --libs ncurses) -lm -lz -lrt + + atopsar: atop + ln -sf atop atopsar |