Skip to contentSkip to conversation

pv: bump to version 1.4.12

PATCH New Thomas Petazzoni 2 participants 3 messages Oct 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pv: bump to version 1.4.12

---
 package/pv/pv.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pv/pv.mk +1 -1
index c2dca2a..a8b2651 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PV_VERSION = 1.4.6
+PV_VERSION = 1.4.12
 PV_SOURCE = pv-$(PV_VERSION).tar.bz2
 PV_SITE = http://www.ivarch.com/programs/sources
 PV_LICENSE = Artistic-2.0
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 2/2 pv: fix build issue with some toolchains

While 'pv' uses autoconf, it does not use automake for its makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but using 'ld' directly doesn't work well with some toolchain configuration, as the ld default emulation may not necessarily be the correct one. By passing custom values for LD and LDFLAGS, we ensure that 'gcc' is used to do these partial linking steps.

Fixes the following build failures (x86-64 and mips64) :

http://autobuild.buildroot.org/results/9ac/9aca276a220ad1460e5b32bd042dd4c93649baf3/build-end.log
http://autobuild.buildroot.org/results/910/91044c01dcc3c4150aa6e74f5964fff27b9dac79/build-end.log

---
 package/pv/pv.mk | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
package/pv/pv.mk +10 -1
index a8b2651..00502d3 100644
@@ -9,6 +9,15 @@ PV_SOURCE = pv-$(PV_VERSION).tar.bz2
 PV_SITE = http://www.ivarch.com/programs/sources
 PV_LICENSE = Artistic-2.0
 PV_LICENSE_FILES = doc/COPYING
-PV_MAKE_OPT = LD=$(TARGET_LD) # otherwise 'ld' is used
+
+# While 'pv' uses autoconf, it does not use automake for its
+# makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but
+# using 'ld' directly doesn't work well with some toolchain
+# configuration, as the ld default emulation may not necessarily be
+# the correct one. By passing the below values for LD and LDFLAGS, we
+# ensure that 'gcc' is used to do these partial linking steps.
+PV_MAKE_OPT = \
+	LD=$(TARGET_CC) \
+	LDFLAGS="-Wl,-r -nostdlib"
 
 $(eval $(autotools-package))
Signature · 1 line
1.8.1.2