aboutsummaryrefslogtreecommitdiff
path: root/package/pv/pv-1.2.0-fixld.patch
blob: 9df279de52fb0cc1902dfbd404a6b3e6c8262062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[PATCH] fix linker variable

The linker variable LD was always set to 'ld' instead of the value from
the environment. This breaks any linking, especially when dealing with
a cross-compiler toolchain.
The fix takes the CC variable and changes the 'gcc' extension to 'ld'.

Signed-off-by: Roeland Van Praet <roelvp@mind.be>
---
diff -ruN a/autoconf/make/vars.mk b/autoconf/make/vars.mk
--- a/autoconf/make/vars.mk	2010-03-11 00:43:19.000000000 +0100
+++ b/autoconf/make/vars.mk	2011-10-06 15:47:18.000000000 +0200
@@ -30,7 +30,7 @@
 @SET_MAKE@
 SHELL = /bin/sh
 CC = @CC@
-LD = ld
+LD = $(CC:gcc=ld)
 DO_GZIP = @DO_GZIP@
 INSTALL = @INSTALL@
 INSTALL_DATA = @INSTALL_DATA@