summaryrefslogtreecommitdiff
path: root/repo/system/libaio/libaio-cppflags.patch
blob: 5f62b7c0746980b9396c2ca013de19ce9a8ae17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
respect env CPPFLAGS

--- a/src/Makefile
+++ b/src/Makefile
@@ -2,8 +2,9 @@ prefix=/usr
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
 
-CFLAGS ?= -g -fomit-frame-pointer -O2
-CFLAGS += -Wall -I. -fPIC
+CFLAGS ?= -fomit-frame-pointer -O2
+CFLAGS += -I. -fPIC
+CFLAGS += $(CPPFLAGS)
 SO_CFLAGS=-shared $(CFLAGS)
 L_CFLAGS=$(CFLAGS)
 LINK_FLAGS=