diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-01-28 22:56:26 -0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-01-28 23:05:55 -0800 |
commit | 1121daca35c6c692602621eab28d4de19f0b347d (patch) | |
tree | c663d74d8d0e8914a0ffe34e86ef20e408fc1c8e | |
parent | 85598a3a597441edb4af308243cc9ff5f9666330 (diff) | |
download | perl-main.tar.gz |
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
-rwxr-xr-x | perl-5.16.2/Configure | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ Usage: $me [-dehrsEKOSV] [-f config.sh] [-D symbol] [-D symbol=value] -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 @@ EOM fi $rm_try + if [ $cc_as_ld = "$define" ] ; then + ld="$cc" + fi + case "$ld" in '') if $test $bin_ELF = "$define"; then cat <<EOM |