|
Boost-Build : |
From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2007-08-03 19:20:02
Hello,
The following Jamroot file does not work because a
newline is embedded at the end of the variable that is
filled with SHELL.
# Begin Jamroot
local wx_cppflags = [ SHELL "wx-config --cppflags" ] ;
exe hello : hello.cpp : <cxxflags>"$(wx_cppflags)" ;
# End Jamroot
How can I remove this newline? I tried replacing the
SHELL command with "wx-config --cppflags | head -n 1 |
sed -e s/\s$//"; However, the newline persisted which
leads me to believe Boost.Jam has appended it.
Thank you,
Chris
# Output
cstankevitz_at_cstankevitz-laptop:~/temp$ bjam
...found 8 targets...
...updating 2 targets...
gcc.compile.c++ bin/gcc/debug/hello.o
g++: no input files
/bin/sh: -c: not found
"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall
-g -fPIC
-I/usr/lib/wx/include/gtk2-unicode-release-2.6
-I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
-c -o "bin/gcc/debug/hello.o" "hello.cpp"
...failed gcc.compile.c++ bin/gcc/debug/hello.o...
...skipped <pbin/gcc/debug>hello for lack of
<pbin/gcc/debug>hello.o...
...failed updating 1 target...
...skipped 1 target...
cstankevitz_at_cstankevitz-laptop:~/temp$
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/
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