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 Upstream-Status: Inappropriate [OE cross-compile specific]
11 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13 public/Makefile | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/public/Makefile b/public/Makefile
17 index 7dd80e4..1967a90 100644
20 @@ -37,7 +37,7 @@ ${TARGET_LIB}.${VER_MJR}: ${TARGET_LIB}.${VER}
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 $@ $^
28 $(CC) $(CFLAGS) -MM $< >$@