[Ecls-list] passing compiler and linker options through 'compile-file'

Brian Spilsbury brian.spilsbury at gmail.com
Mon Sep 3 14:20:58 UTC 2007


I'm not sure if this addresses your problem, but look in src/cmp/cmpdefs.lsp

You'll see *cc-flags*, *ld-flags*, etc.

This may be the right place to set those things up.

If you find what works with mingw, then we should be able to add the
correct defaults to the cvs version, too.

Regards,
Brian.

On 9/3/07, marc daya <marc.daya+ecl at gmail.com> wrote:
> Greetings,
>
> Is there a way to pass compiler and linker options to the gcc/dllwrap
> invocation that ECL spawns for 'compile-file'?  My intention is to use
> ECL's static FFI to construct an interface to a native library, so
> that the functionality that it provides is available to an ECL image
> (by loading a compiled fasl).
>
> To get this to work I need to be able to pass the location of the
> header files during the compile phase, and the library path and name
> during the link phase, but I couldn't find anything in the
> documentation that shows how this might be done.
> I  got it working (under MinGW) by adding 3 new keyword arguments to
> 'compile-file' (:cc-flags, :ld-path, :ld-libs).  The value of
> 'cc-flags' is passed to 'compiler-cc', and 'ld-path' and 'ld-libs' to
> 'bundle-cc'.
>
> Since I'm not sure, though, if this the best (or even correct)
> approach.  Any comments or suggestions would be appreciated.
>
> .marc
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>




More information about the ecl-devel mailing list