summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-08-07 21:08:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-08-07 21:08:54 (GMT)
commit0f01c2da3bbb0505b79dce9ffbc7dededd9d5115 (patch)
tree90530a3a6cc04e4f192af9a887be6e931990bab6 /configure.in
parent8cd0bada8471fae5bc504392ef4ea5fc31097cd2 (diff)
downloadcpython-0f01c2da3bbb0505b79dce9ffbc7dededd9d5115.zip
cpython-0f01c2da3bbb0505b79dce9ffbc7dededd9d5115.tar.gz
cpython-0f01c2da3bbb0505b79dce9ffbc7dededd9d5115.tar.bz2
Patch #1239112: Correct LINKCC C++ test. Fixes #1189330.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index a4fb112..5ad6adb 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)"