[Ecls-list] Passing link options to compile-file?

Matthew Mondor mm_lists at pulsar-zone.net
Mon Mar 8 02:01:10 UTC 2010


On Sun, 07 Mar 2010 19:03:32 -0600
Seth Burleigh <seth at tewebs.com> wrote:

> Is there any way i can pass linking options to  compile-file? I need to
> link to the bluez library for code to work.
> 
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
> 

Juanjo introduced functionality lately to add user CFLAGS and LDFLAGS
in the latest (10.3.1) release.  For instance I used as a small FFI
test:

(setf c:*user-cc-flags* '("-I/usr/pkg/include")
      c:*user-ld-flags* '("-L/usr/pkg/lib" "-Wl,-R/usr/pkg/lib" "-lSDL"))
(compile-file "/tmp/ecl-ffi.lisp" :c-file t :h-file t :data-file t)
(load "/tmp/ecl-ffi")

I hope this helps,
-- 
Matt




More information about the ecl-devel mailing list