--- 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