Closed attila-lendvai closed 8 years ago
attila-lendvai: Could you try taking out the change to link_executable and try this: CXXFLAGS="-I/opt/boost_1_62_0/include" LINKFLAGS="-L/opt/boost_1_62_0/lib -Wl,-rpath=/opt/boost_1_62_0/lib" EXTERNALS_CLASP_DIR=/media/store/work/clasp/externals-clasp/ PJOBS=2 make
I suggest this because LINKFLAGS from the shell environment should be read by the waf build system and the fact that I explicitly write the value of LINKFLAGS into the C++ source code of iclasp/cclasp.
My thinking is based on the belief that the environment variables that waf listens to are listed here: https://waf.io/book/#_library_interaction_use
waf does read LINKFLAGS from the shell environment along with LDFLAGS. It says that LINKFLAGS is the 'list of link flags' and LDFLAGS is the 'list of link flags at the end of the link command'. Since they are both used I should string the two of them together and put that into core:build-linkflags. How does that sound?
This should be fixed in 1077f2d
fixed in testing, closing.
i'm on Debian stable and therefore had to build a fresh libboost myself. i installed it under
/opt
.this is how i need to build clasp, which works almost until the end, but fails when linking cclasp_boehm:
i can successfully finish building cclasp if i hardcode this into the wscript file, into the
link_executable
task:-L/opt/boost_1_62_0/lib -Wl,-rpath=/opt/boost_1_62_0/lib
cclasp then can successfully
compile-file
andload
fasls.the resulting cclasp has no clue about the libboost path, though: