pv-1.2.0-fixld.patch 671 B

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