• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/directfb/0004-use-gcc-link.patch
Thomas PetazzoniThomas Petazzoni committed 3f0bed19ffe02 Sep 2015
Raw file
Source viewDiff to previous
 
1
Add patch to use 'gcc' instead of 'ld' for linking
2
​
3
The patch has been sent upstream but it has not been merged yet
4
​
5
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
6
​
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
11
​
12
Invoking 'ld' directly may miss some necessary linker flags which
13
are usually passed by gcc. Therefore, use gcc for linking.
14
​
15
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
16
---
17
 rules/libobject.make | 2 +-
18
 1 file changed, 1 insertion(+), 1 deletion(-)
19
​
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
24
@@ -3,7 +3,7 @@
25
    if test -d $<.tmp; then rmdir $<.tmp; fi
26
    mkdir $<.tmp
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
31
 
32
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
33
-- 
34
1.8.3.2
35
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.