summaryrefslogtreecommitdiff
path: root/repo/system/libaio/libaio-cppflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system/libaio/libaio-cppflags.patch')
-rw-r--r--repo/system/libaio/libaio-cppflags.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/repo/system/libaio/libaio-cppflags.patch b/repo/system/libaio/libaio-cppflags.patch
new file mode 100644
index 0000000..5f62b7c
--- /dev/null
+++ b/repo/system/libaio/libaio-cppflags.patch
@@ -0,0 +1,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=
+