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.02.3-10+rpi1~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5472ae1cbe2deca1f478fd3a801a4ab3d2949e06;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 46149a70..dfcb8490 100755 --- a/configure +++ b/configure @@ -1743,7 +1743,7 @@ echo "OTHERLIBRARIES=$otherlibraries" >> Makefile echo "CC_PROFILE=$cc_profile" >> Makefile echo "SYSTHREAD_SUPPORT=$systhread_support" >> Makefile echo "PARTIALLD=$partialld" >> Makefile -echo "PACKLD=\$(PARTIALLD) \$(NATIVECCLINKOPTS) -o " \ +echo "PACKLD=\$(PARTIALLD) $(echo $nativecclinkopts|sed s/-Wl,//g) -o " \ | sed -e 's/ $/\\ /' >> Makefile echo "DLLCCCOMPOPTS=$dllccompopts" >> Makefile echo "IFLEXDIR=$iflexdir" >> Makefile