The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / dmalloc / 0004-fix-shlibs.patch
1 Fix shared library rules
2
3 dmalloc uses ld -shared --whole-archive -o lib.so lib.a,
4 but for some reason lists regular objects in addition
5 to the archive, ending up with two copies of each symbol.
6
7 Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
8
9 --- a/Makefile.in
10 +++ b/Makefile.in
11 @@ -257,7 +257,7 @@ shlib : $(BUILD_SL)
12  # via: http://256.com/gray/email.html
13  $(LIB_SL) : $(LIBRARY)
14         rm -f $@ $@.t
15 -       @shlinkargs@ $(LIBRARY) $(OBJS) $(NORMAL_OBJS)
16 +       @shlinkargs@ $(LIBRARY)
17         mv $@.t $@
18  
19  $(LIBRARY) : $(OBJS) $(NORMAL_OBJS)
20 @@ -270,7 +270,7 @@ $(LIB_TH) : $(OBJS) $(THREAD_OBJS)
21  
22  $(LIB_TH_SL) : $(LIB_TH)
23         rm -f $@ $@.t
24 -       @shlinkargs@ $(LIB_TH) $(OBJS) $(THREAD_OBJS)
25 +       @shlinkargs@ $(LIB_TH)
26         mv $@.t $@
27  
28  $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
29 @@ -279,7 +279,7 @@ $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
30  
31  $(LIB_CXX_SL) : $(LIB_CXX)
32         rm -f $@ $@.t
33 -       @shlinkargs@ $(LIB_CXX) $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
34 +       @shlinkargs@ $(LIB_CXX)
35         mv $@.t $@
36  
37  $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
38 @@ -288,7 +288,7 @@ $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
39  
40  $(LIB_TH_CXX_SL) : $(LIB_TH_CXX)
41         rm -f $@ $@.t
42 -       @shlinkargs@ $(LIB_TH_CXX) $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
43 +       @shlinkargs@ $(LIB_TH_CXX)
44         mv $@.t $@
45  
46  threadssl : $(LIB_TH_SL)