blob: 043b07a655c5bdecb72980a1448e3ed5c860bc69 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From c10368b397483a2fc7b493c099d8416d902f8cd8 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 31 Jul 2018 14:18:35 +0800
Brad Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [PATCH] allow multi definitions for native
5
6Upstream-Status: Pending
7
8It fails to create .so file when build efivar-native:
9
10| lib.o:(*IND*+0x0): multiple definition of `efi_set_variable'
11| lib.o:lib.c:(.text+0xa0): first defined here
12
13Add link option '-z muldefs' to fix it.
14
15Signed-off-by: Kai Kang <kai.kang@windriver.com>
16
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -040018---
19 Make.rules | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/Make.rules b/Make.rules
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023index 042585b..257ba45 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040024--- a/Make.rules
25+++ b/Make.rules
26@@ -20,6 +20,7 @@ include $(TOPDIR)/Make.version
27 $(CCLD) $(ccldflags) $(CPPFLAGS) $(SOFLAGS) \
28 -Wl,-soname,$@.1 \
29 -Wl,--version-script=$(MAP) \
30+ -Wl,-z,muldefs \
31 -o $@ $^ $(LDLIBS)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080032 ln -vfs $@ $@.1
Brad Bishop316dfdd2018-06-25 12:45:53 -040033
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034--
352.7.4
36