diff options
author | davidovski <david@davidovski.xyz> | 2022-05-18 23:40:38 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-18 23:40:38 +0100 |
commit | 0b977787374349328a21af0deade30d534cf3978 (patch) | |
tree | 3c2be28ef9a6f74a36f21cd48a34cb06b3080960 /repo/system/libaio/libaio-cppflags.patch | |
parent | dccab9b94dcfc5e040647210ba22b9cc4bddc742 (diff) |
fixed gcc loader/linker errors
Diffstat (limited to 'repo/system/libaio/libaio-cppflags.patch')
-rw-r--r-- | repo/system/libaio/libaio-cppflags.patch | 17 |
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= + |