[Ecls-list] FFI/UFFI and link flags

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Tue Feb 2 15:59:01 UTC 2010


On Tue, Feb 2, 2010 at 12:26 PM, Matthew Mondor <mm_lists at pulsar-zone.net>wrote:

> Is there an existing ECL-specific special variable which can be set
> before or after load-foreign-library to specify additional wanted
> LDFLAGS?  Also how about CFLAGS (I also remember a request from another
> user on this list about a way to add CFLAGS).
> A quick check at the ffi.lsp file shows *LD-FLAGS* but it doesn't seem
> to be user-serviceable.
>

If you have a look at the build directory you will notice that ECL defines
three variables

(defvar *ld-flags* #-msvc "-L/sw/lib  -lffi -lecl  -lgmp   -lm ")
(defvar *ld-shared-flags* #-msvc "-dynamiclib -flat_namespace -undefined
suppress -L/sw/lib -L/sw/lib  -lffi -lecl  -lgmp   -lm ")
(defvar *ld-bundle-flags* #-msvc "-bundle -L/sw/lib -L/sw/lib  -lffi -lecl
-lgmp   -lm ")

which are used for programs, shared libraries and FASLs, respectively. As a
quick hack you might prepend additional flags to them, but I will look for
more elegant solutions given the existing demand of such a feature by more
than one user.

Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100202/e3941856/attachment.html>


More information about the ecl-devel mailing list