<div dir="ltr"><div>Hi,</div><div><br></div><div>In my ECL FFI code I rely on the C++ class 'Cube' implemented in 'Cube.h' and 'Cube.cpp'.</div><div><br></div><div>I therefore need to add the object file 'Cube.o' to the g++ command line generated by 'asdf:make-build'.</div>
<div><br></div><div>The following hack works:</div><div><br></div><div>(ext:install-c-compiler)</div><div>(require :asdf)</div><div>(push "./" asdf:*central-registry*)</div><div>(let ((COMPILER::*ld-bundle-flags* (concatenate 'string COMPILER::*ld-bundle-flags* " cpp/Cube.o ")))</div>
<div>  (asdf:make-build :cube :type :static-library :move-here "./cube.a"))</div><div>(quit)</div><div><br></div><div>But it doesn't look very elegant...</div><div><br></div><div>Is there a better way - for example a keyword parameter for 'asdf:make-build' etc. - which allows to add object files etc. to the command line generated by 'asdf:make-build'?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Dietrich</div><div><br></div></div>