diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2005-08-07 21:08:54 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2005-08-07 21:08:54 +0000 |
| commit | 0f01c2da3bbb0505b79dce9ffbc7dededd9d5115 (patch) | |
| tree | 90530a3a6cc04e4f192af9a887be6e931990bab6 /configure | |
| parent | 8cd0bada8471fae5bc504392ef4ea5fc31097cd2 (diff) | |
| download | cpython-git-0f01c2da3bbb0505b79dce9ffbc7dededd9d5115.tar.gz | |
Patch #1239112: Correct LINKCC C++ test. Fixes #1189330.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.475.2.7 . +# From configure.in Revision: 1.475.2.8 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for python 2.4. # @@ -3265,9 +3265,11 @@ then if test -z "$CXX"; then LINKCC="\$(PURIFY) \$(CC)" else - echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext - $CXX -c conftest.$ac_ext 2>&5 - if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ + echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc + $CXX -c conftest_a.cc # 2>&5 + echo 'void foo(){}' > conftest_b.$ac_ext + $CC -c conftest_b.$ac_ext # 2>&5 + if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \ && test -s conftest$ac_exeext && ./conftest$ac_exeext then LINKCC="\$(PURIFY) \$(CC)" |
