• 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/pv/pv-1.2.0-fixld.patch
Roeland Van PraetRoeland Van Praet committed 7f7cff5239a07 Oct 2011
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
[PATCH] fix linker variable
2
​
3
The linker variable LD was always set to 'ld' instead of the value from
4
the environment. This breaks any linking, especially when dealing with
5
a cross-compiler toolchain.
6
The fix takes the CC variable and changes the 'gcc' extension to 'ld'.
7
​
8
Signed-off-by: Roeland Van Praet <roelvp@mind.be>
9
---
10
diff -ruN a/autoconf/make/vars.mk b/autoconf/make/vars.mk
11
--- a/autoconf/make/vars.mk 2010-03-11 00:43:19.000000000 +0100
12
+++ b/autoconf/make/vars.mk 2011-10-06 15:47:18.000000000 +0200
13
@@ -30,7 +30,7 @@
14
 @SET_MAKE@
15
 SHELL = /bin/sh
16
 CC = @CC@
17
-LD = ld
18
+LD = $(CC:gcc=ld)
19
 DO_GZIP = @DO_GZIP@
20
 INSTALL = @INSTALL@
21
 INSTALL_DATA = @INSTALL_DATA@
  • 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.