[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can we run all tests using C++ specified compiler?

From: Jeffrey Walton
Subject: How can we run all tests using C++ specified compiler?
Date: Sat, 4 Aug 2018 18:17:40 -0400

I'm testing different configurations of a C++ library. When I test on
AIX with XLC I am catching an error:

-bash-4.4$ OBJECT_MODE=64 CXX=xlC ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/noloader/cryptopp':
configure: error: C compiler cannot create executables
See `config.log' for more details

The problem is using the wrong compiler:

configure:3381: gcc    conftest.c  >&5
/tmp/cczCkD4X.s: line 9: Only .llong should be used for relocatable expressions.
configure:3385: $? = 1
configure:3423: result: no

Our has AC_PROG_CXX after the various init's, and lacks
AC_PROG_CC. We don't do anything with the C compiler because we are a
C++ library.

How do we tell Autoconf to use the specified C++ compiler for all tests?

Thanks in advance.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]