Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-flock / stx-metal / files / mtce-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 Upstream-Status: Inappropriate [OE cross-compile specific]
10
11 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
12 ---
13  public/Makefile | 2 +-
14  1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/public/Makefile b/public/Makefile
17 index 7dd80e4..1967a90 100644
18 --- a/public/Makefile
19 +++ b/public/Makefile
20 @@ -37,7 +37,7 @@ ${TARGET_LIB}.${VER_MJR}: ${TARGET_LIB}.${VER}
21         ln -sf $^ $@
22
23  ${TARGET_LIB}.${VER}: $(OBJS)
24 -       $(CC) ${LDFLAGS} -Wl,-soname,${TARGET_LIB}.${VER_MJR} -o $@ $^
25 +       $(CC) ${LDFLAGS} -shared -Wl,-soname,${TARGET_LIB}.${VER_MJR} -o $@ $^
26
27  $(SRCS:.c=.d):%.d:%.c
28         $(CC) $(CFLAGS) -MM $< >$@
29 --
30 2.7.4