summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/libaio/libaio/system-linkage.patch
blob: cc91ea99d91cea0ab6e418726052eb87efd7dc52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 94bba6880b1f10c6b3bf33a17ac40935d65a81ae Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@intel.com>
Date: Fri, 6 Nov 2015 15:19:46 +0000
Subject: [PATCH] Don't remove the system libraries and startup files from
 libaio, as in some build configurations these are required.  For example,
 including conf/include/security_flags.inc on PPC results in:

io_queue_init.os: In function `io_queue_init':
tmp/work/ppce300c3-poky-linux/libaio/0.3.110-r0/libaio-0.3.110/src/io_queue_init.c:33:
undefined reference to `__stack_chk_fail_local'

Upstream-Status: Pending
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 37ae219..22e0c9a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,7 +6,7 @@ CFLAGS ?= -g -fomit-frame-pointer -O2
 CFLAGS += -Wall -I. -fPIC
 SO_CFLAGS=-shared $(CFLAGS)
 L_CFLAGS=$(CFLAGS)
-LINK_FLAGS=
+LINK_FLAGS=$(LDFLAGS)
 LINK_FLAGS+=$(LDFLAGS)
 ENABLE_SHARED ?= 1
 
-- 
2.25.1