sysstat-10.0.4-flags.patch 887 B

1234567891011121314151617181920212223242526272829303132
  1. --- a/Makefile.in
  2. +++ b/Makefile.in
  3. @@ -69,9 +69,8 @@
  4. SYSCONFIG_DIR = @SYSCONFIG_DIR@
  5. # Compiler flags
  6. -CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -pipe -O2
  7. +CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes
  8. DFLAGS = @DFLAGS@
  9. -LFLAGS = @STRIP@
  10. DFLAGS += -DSA_DIR=\"$(SA_DIR)\" -DSADC_PATH=\"$(SADC_PATH)\"
  11. DFLAGS += $(DFSENSORS)
  12. @@ -154,7 +153,7 @@
  13. $(CC) -o $@ -c $(CFLAGS) $(DFLAGS) $<
  14. % : %.o
  15. - $(CC) -o $@ $(CFLAGS) $^ $(LFLAGS)
  16. + $(CC) -o $@ $(CFLAGS) $(LFLAGS) $^ $(LIBS)
  17. all: sadc sar sadf iostat mpstat pidstat nfsiostat cifsiostat locales
  18. @@ -196,7 +195,7 @@
  19. sadc.o: sadc.c sa.h version.h common.h ioconf.h sysconfig.h rd_stats.h rd_sensors.h
  20. -sadc: LFLAGS += $(LFSENSORS)
  21. +sadc: LIBS = $(LFSENSORS)
  22. sadc: sadc.o act_sadc.o sa_wrap.o sa_common.o librdstats.a librdsensors.a libsyscom.a
  23. sar.o: sar.c sa.h version.h common.h ioconf.h pr_stats.h sysconfig.h