Add -Dcc_as_ld to configure

In MacOSX it may not be possible to build 32-bit perl executable
because "Configure" decides to use "ld" as linker instead of "cc"
for non-ELF host.  Compilation fails because ld by default to
64-bit but the prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1
defaults to 32-bit.

Change-Id: Id12d46243cd18310e3910c5f62b05fe3a90fbc01
diff --git a/perl-5.16.2/Configure b/perl-5.16.2/Configure
index fdbbf20..4f9536b 100755
--- a/perl-5.16.2/Configure
+++ b/perl-5.16.2/Configure
@@ -1723,6 +1723,7 @@
          -Dinc_version_list=none  do not include older perl trees in @INC
          -DEBUGGING=none          DEBUGGING options
          -Dcc=gcc                 choose your compiler
+         -Dcc_as_ld               use cc as ld
          -Dprefix=/opt/perl5      choose your destination
   -E : stop at the end of questions, after having produced config.sh.
   -K : do not use unless you know what you are doing.
@@ -7975,6 +7976,10 @@
 	fi
 	$rm_try
 
+        if [ $cc_as_ld = "$define" ] ; then
+            ld="$cc"
+        fi
+
 	case "$ld" in
 	'')	if $test $bin_ELF = "$define"; then
 			cat <<EOM