[Ecls-list] Release ahead, report problems

Matthew Mondor mm_lists at pulsar-zone.net
Thu Feb 4 05:08:53 UTC 2010


On Wed, 3 Feb 2010 22:17:30 +0100
Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com> wrote:

> > (let ((c:*user-ld-flags* '("-lc"))) (compile 'foo '(lambda (x) (+ x x))))
> 
> ;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
> ;;; End of Pass 1.
> ;;; Note: Invoking external command:
> ;;;   gcc-4.2 "-I/Users/jjgarcia/include/" -I/sw/include -g -O2 -fPIC
> -fno-common  -Ddarwin -O -w -c
> "/private/var/folders/kU/kUiyJak2GK4YuehJzAcNGU+++TI/-Tmp-/ECL0029MrkTj.c"
> -o
> "/private/var/folders/kU/kUiyJak2GK4YuehJzAcNGU+++TI/-Tmp-/ECL0029MrkTj.o"
> ;;; Note: Invoking external command:
> ;;;   gcc-4.2 -o
> "/private/var/folders/kU/kUiyJak2GK4YuehJzAcNGU+++TI/-Tmp-/ECL0029MrkTj.fas"
> -L"/Users/jjgarcia/lib/"
> "/private/var/folders/kU/kUiyJak2GK4YuehJzAcNGU+++TI/-Tmp-/ECL0029MrkTj.o"
> '-lc' -bundle -L/sw/lib -L/sw/lib  -lffi -lecl  -lgmp   -lm
> FOO
> NIL
> NIL
> > (foo 2)
> 
> 4

Awesome, thanks for this :)

I am a bit concerned over the single quotes, would more than one flag
still work fine, even if GCC obtains them in a single argv string?
Even if so, should we assume other compilers also do?
Probably that if the user flags include spaces they would already
contain quotes...
-- 
Matt




More information about the ecl-devel mailing list