On Tue, Feb 2, 2010 at 12:26 PM, Matthew Mondor <span dir="ltr"><<a href="mailto:mm_lists@pulsar-zone.net">mm_lists@pulsar-zone.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Is there an existing ECL-specific special variable which can be set<br>
before or after load-foreign-library to specify additional wanted<br>
LDFLAGS? Also how about CFLAGS (I also remember a request from another<br>
user on this list about a way to add CFLAGS).<br>
A quick check at the ffi.lsp file shows *LD-FLAGS* but it doesn't seem<br>
to be user-serviceable.<br>
</blockquote></div><br>If you have a look at the build directory you will notice that ECL defines three variables<br><br>(defvar *ld-flags* #-msvc "-L/sw/lib -lffi -lecl -lgmp -lm ")<br>(defvar *ld-shared-flags* #-msvc "-dynamiclib -flat_namespace -undefined suppress -L/sw/lib -L/sw/lib -lffi -lecl -lgmp -lm ")<br>
(defvar *ld-bundle-flags* #-msvc "-bundle -L/sw/lib -L/sw/lib -lffi -lecl -lgmp -lm ")<br><br>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.<br>
<br>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>