1 Add patch to use 'gcc' instead of 'ld' for linking
3 The patch has been sent upstream but it has not been merged yet
5 Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
7 From 176ce06b40897a357fe76a558af517197325f188 Mon Sep 17 00:00:00 2001
8 From: Markos Chandras <markos.chandras@imgtec.com>
9 Date: Wed, 28 Aug 2013 10:56:32 +0100
10 Subject: [PATCH] rules/libobject.make: Use gcc for linking
12 Invoking 'ld' directly may miss some necessary linker flags which
13 are usually passed by gcc. Therefore, use gcc for linking.
15 Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
17 rules/libobject.make | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/rules/libobject.make b/rules/libobject.make
21 index bc670da..2cba658 100644
22 --- a/rules/libobject.make
23 +++ b/rules/libobject.make
25 if test -d $<.tmp; then rmdir $<.tmp; fi
27 (cd $<.tmp && $(AR) x ../../$<)
28 - $(LD) -o $@ -r $<.tmp/*.o
29 + $(CC) -nostdlib -o $@ -r $<.tmp/*.o
30 rm -f $<.tmp/*.o && rmdir $<.tmp
32 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)