[Ecls-list] How to add an object file to the compile command line generated by 'asdf:make-build'?

Dietrich Bollmann dietrich at formgames.org
Thu Jun 13 01:32:39 UTC 2013


In my ECL FFI code I rely on the C++ class 'Cube' implemented in 'Cube.h'
and 'Cube.cpp'.

I therefore need to add the object file 'Cube.o' to the g++ command line
generated by 'asdf:make-build'.

The following hack works:

(require :asdf)
(push "./" asdf:*central-registry*)
(let ((COMPILER::*ld-bundle-flags* (concatenate 'string
COMPILER::*ld-bundle-flags* " cpp/Cube.o ")))
  (asdf:make-build :cube :type :static-library :move-here "./cube.a"))

But it doesn't look very elegant...

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'?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130613/d9d2e2d0/attachment.html>

More information about the ecl-devel mailing list