Stephen, I haven't tried this in a few months, but last time I checked, chicken will use any options you provided at ./configure time. So for example you could probably say
./configure CFLAGS="-O2 -L/sw/lib -I/sw/include" and the options should be used automatically in the future. Some people have other ways of passing arguments to configure (there was a discussion about it on the list) but for me that way always works. This assumes you -always- want /sw to be looked at, which may be a problem if you also install stuff in /usr/local/lib occasionally. Otherwise I have been using the "-c" option to chicken-setup as you have found. On 1/11/07, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote:
I found an option to chicken-setup itself: "-csc-option" (abbreviated "-c"). It works: # chicken-setup -c "-I/sw/include -L/sw/lib" numbers gunzip -c ../numbers.egg | tar xf - /usr/local/bin/csc -feature compiling-extension -I/sw/include -L/ sw/lib -s -O2 -d1 numbers-base.scm -lgmp -X easyffi Warning: invalid compiler option `-I/sw/include' - ignored Warning: invalid compiler option `-L/sw/lib' - ignored rm -fr /usr/local/lib/chicken/1/numbers-base.so cp -r numbers-base.so /usr/local/lib/chicken/1/numbers-base.so cp -r numbers.scm /usr/local/lib/chicken/1/numbers.scm cp -r numbers.html /usr/local/lib/chicken/1/numbers.html * The following documentation files have been installed in /usr/local/ lib/chicken/1/index.html: * numbers.html rm -fr numbers.egg-dir It would be nice if options like that that I'll nearly always want to specify could be provided via an environment variable rather than always typed.
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users