From: Stefano Zacchiroli Date: Tue, 19 May 2009 15:23:34 +0000 (+0200) Subject: Call ld with proper flags X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c2115c9e679f15f84bdcbe74b80ce278a81fe8a;p=ocaml.git Call ld with proper flags Filter linkflags passed to ld by ocamlopt -pack and -output-obj to remove the "-Wl," parts, which are only used when ocamlopt calls gcc. Gbp-Pq: Name 0002-Call-ld-with-proper-flags.patch --- diff --git a/configure b/configure index d67672ef..c0024a9c 100755 --- a/configure +++ b/configure @@ -2049,7 +2049,7 @@ echo "DYNLINKOPTS=$dllib" >> Makefile echo "OTHERLIBRARIES=$otherlibraries" >> Makefile echo "CC_PROFILE=$cc_profile" >> Makefile echo "SYSTHREAD_SUPPORT=$systhread_support" >> Makefile -echo "PACKLD=$partialld $nativecclinkopts -o\\ " >> Makefile +echo "PACKLD=$partialld $(echo $nativecclinkopts|sed s/-Wl,//g) -o\\ " >> Makefile echo "IFLEXDIR=$iflexdir" >> Makefile echo "O=o" >> Makefile echo "A=a" >> Makefile