blob: 0b1f4756976a02614f10695c218e9c3e118cfdbb [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001From 94bba6880b1f10c6b3bf33a17ac40935d65a81ae Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@intel.com>
3Date: Fri, 6 Nov 2015 15:19:46 +0000
4Subject: [PATCH] Don't remove the system libraries and startup files from
5 libaio, as in some build configurations these are required. For example,
6 including conf/include/security_flags.inc on PPC results in:
7
8io_queue_init.os: In function `io_queue_init':
9tmp/work/ppce300c3-poky-linux/libaio/0.3.110-r0/libaio-0.3.110/src/io_queue_init.c:33:
10undefined reference to `__stack_chk_fail_local'
11
12Upstream-Status: Pending
13Signed-off-by: Ross Burton <ross.burton@intel.com>
14---
Andrew Geissler706d5aa2021-02-12 15:55:30 -060015 src/Makefile | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
Patrick Williamsf1e5d692016-03-30 15:21:19 -050017
18diff --git a/src/Makefile b/src/Makefile
Andrew Geissler706d5aa2021-02-12 15:55:30 -060019index eadb336..56ab701 100644
Patrick Williamsf1e5d692016-03-30 15:21:19 -050020--- a/src/Makefile
21+++ b/src/Makefile
Andrew Geissler706d5aa2021-02-12 15:55:30 -060022@@ -3,10 +3,10 @@ includedir=$(prefix)/include
23 libdir=$(prefix)/lib
24
25 CFLAGS ?= -g -fomit-frame-pointer -O2
26-CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC
27+CFLAGS += -Wall -I. -fPIC
Patrick Williamsf1e5d692016-03-30 15:21:19 -050028 SO_CFLAGS=-shared $(CFLAGS)
29 L_CFLAGS=$(CFLAGS)
30-LINK_FLAGS=
31+LINK_FLAGS=$(LDFLAGS)
32 LINK_FLAGS+=$(LDFLAGS)
33
Andrew Geissler706d5aa2021-02-12 15:55:30 -060034 soname=libaio.so.1
Patrick Williamsf1e5d692016-03-30 15:21:19 -050035--
Andrew Geissler706d5aa2021-02-12 15:55:30 -0600362.1.4
Patrick Williamsf1e5d692016-03-30 15:21:19 -050037