|
Boost-Build : |
Subject: [Boost-build] "check-target-builds" does not fail when it should
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-09-21 03:53:15
Hello
Using boost-1.43
I have following Jam code.
message m1 : "-- Searching for iconv support " ;
exe has_iconv : ./has_iconv.cpp ;
explicit has_iconv ;
if [ check-target-builds has_iconv ]
{
message m2 : "--- Found in libc " ;
OPTS = $(OPTS) <define>BOOST_LOCALE_WITH_ICONV=1 ;
}
On Cygwin platform it reports "--- Found in libc" what it is clearly
can't be as
$ g++ has_iconv.cpp
/cygdrive/c/Temp/cc4YST3G.o:has_iconv.cpp:(.text+0x26): undefined reference
to `_libiconv_open'
collect2: ld returned 1 exit status
Clearly fails, as iconv must be linked.
Can somebody explain this? Should I use other rule?
Artyom
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk