[Ecls-list] Specifying linker flags for compile-file

Daniel Dickison danieldickison at cmu.edu
Mon Sep 4 11:28:25 UTC 2006

Sorry for the multiple messages, but I found that putting (require  
'cmp) at the toplevel instead of inside of the function where the  
compiler is used fixes the problem.  I was hoping to avoid the  
overhead of loading the compiler if it wasn't necessary, but this  
works so I'm happy.


On Sep 4, 2006, at 6:48 AM, Daniel Dickison wrote:

> I'm using ECL to build plugins for an application, but, due to some
> quirkiness in the plugin system, I need to have the linker allow
> undefined symbols when compiling the FFI bindings.  Is there a way to
> specify linker flags for compile-file?  I'm simply building
> loadable .fas files on the fly, like so:
>        (require 'cmp)
>        (let ((compiler::*ld-bundle-flags* (concatenate 'string
> 							  compiler::*ld-bundle-flags*
> 						      " -undefined suppress"
> 						      " -flat_namespace")))
> 	(mapc #'compile-file uncompiled-ffi-srcs))))
> But *ld-bundle-flags* is not bound unless I've compiled something
> else beforehand -- i.e. the (require 'cmp) isn't defvar'ing *ld-
> bundle-flags*.  Is there a way to make sure that variable is
> initialized?  Or better yet would be a way to specify linker flags
> for building .fas without modifying non-exported variables.
> Thanks!
> Daniel
> ---------------------------------------------------------------------- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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