diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2005-08-07 21:09:30 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2005-08-07 21:09:30 +0000 |
| commit | 67b7b734d1fd7363f8a66645f3bf5fc69efd4194 (patch) | |
| tree | 2dbac7778b3fa25f7c76dcb95812e08736a199b2 /configure.in | |
| parent | a75ad63a06067a5fa401825a6ce484355dbc7d64 (diff) | |
| download | cpython-67b7b734d1fd7363f8a66645f3bf5fc69efd4194.tar.gz | |
Patch #1239112: Correct LINKCC C++ test. Fixes #1189330.
Backported to 2.4.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 101fd44138..7d6fe82567 100644 --- a/configure.in +++ b/configure.in @@ -471,9 +471,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)" |
