libaio-cppflags.patch 351 B

123456789101112131415161718
  1. respect env CPPFLAGS
  2. --- a/src/Makefile
  3. +++ b/src/Makefile
  4. @@ -2,8 +2,9 @@ prefix=/usr
  5. includedir=$(prefix)/include
  6. libdir=$(prefix)/lib
  7. -CFLAGS ?= -g -fomit-frame-pointer -O2
  8. -CFLAGS += -Wall -I. -fPIC
  9. +CFLAGS ?= -fomit-frame-pointer -O2
  10. +CFLAGS += -I. -fPIC
  11. +CFLAGS += $(CPPFLAGS)
  12. SO_CFLAGS=-shared $(CFLAGS)
  13. L_CFLAGS=$(CFLAGS)
  14. LINK_FLAGS=