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
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.
9 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
11 mtce/src/public/Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
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}
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 $@ $^
26 $(CC) $(CFLAGS) -MM $< >$@