stx-metal: add patches to fix build failures on CentOS
[pti/rtp.git] / meta-stx / recipes-core / stx-metal / files / 0010-libamon-add-shared-option.patch
1 From d233ae2930996102bbdd16085b29058a4d01179c Mon Sep 17 00:00:00 2001
2 From: Jackie Huang <jackie.huang@windriver.com>
3 Date: Tue, 9 Jun 2020 22:49:56 +0800
4 Subject: [PATCH] libamon: add shared option
5
6 The -shared option is set in the parent Makefile, but somehow
7 it's lost on CentOS, so add it diretly in the target command.
8
9 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
10 ---
11  mtce/src/public/Makefile | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/mtce/src/public/Makefile b/mtce/src/public/Makefile
15 index 7dd80e4..1967a90 100644
16 --- a/mtce/src/public/Makefile
17 +++ b/mtce/src/public/Makefile
18 @@ -37,7 +37,7 @@ ${TARGET_LIB}.${VER_MJR}: ${TARGET_LIB}.${VER}
19         ln -sf $^ $@
20  
21  ${TARGET_LIB}.${VER}: $(OBJS)
22 -       $(CC) ${LDFLAGS} -Wl,-soname,${TARGET_LIB}.${VER_MJR} -o $@ $^
23 +       $(CC) ${LDFLAGS} -shared -Wl,-soname,${TARGET_LIB}.${VER_MJR} -o $@ $^
24  
25  $(SRCS:.c=.d):%.d:%.c
26         $(CC) $(CFLAGS) -MM $< >$@
27 -- 
28 2.7.4
29