Opened 2 years ago

Closed 2 years ago

#926 closed defect (fixed)

yat_lt_link_ifelse_test.sh and yat_m4_with_bam_test.sh fail because they use the wrong compiler

Reported by: Peter Owned by: Jari Häkkinen
Priority: minor Milestone: yat 0.17
Component: test Version: trunk
Keywords: Cc:

Description

test/yat_lt_link_ifelse_test.sh and test/yat_m4_with_bam_test.sh fail because they run configure and compile/link with default compiler/linker. Tests should use CXX as provided at configure time. The same is probably true for other falgs such as CPPFLAGS, CXXFLAGS etc, but depends on test.

Change History (1)

comment:1 Changed 2 years ago by Peter

Resolution: fixed
Status: newclosed

In 3825:

closes #926

In tests call configure set CXX to the one found at configure time. In
some cases also set CPPFLAGS, CXXFLAGS and LDFLAGS. In general, if the
test configure script is using a c++ compiler, then we need to set CXX
except in some cases which uses g++ and these tests are skipped if g++
is not available (there's a possible hole there). If test is not
retrieving FLAGS from yat-config, directly or via yat.m4, then we set
the flags at commandline in the tests as the compiler might not run
without them.

Note: See TracTickets for help on using tickets.