[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] New patch for bb
From: |
Sergey Khorev |
Subject: |
Re: [Chicken-users] New patch for bb |
Date: |
Wed, 29 Sep 2004 11:19:13 +0400 |
> Yes, that would be best. Perhaps along the lines of:
>
> ;;;; bb.setup -*- Scheme -*-
>
> (define has-flu? (zero? (system "flu-config --version")))
>
> (make/proc
> (list (list "bb-support.so" '("bb-support.cpp" "bb.h")
> (lambda ()
> (run (g++ -Os -fomit-frame-pointer -fPIC -c
> ,(if has-flu? "`flu-config --cflags` -DBB_USE_FLU" "")
> "`fltk-config --cflags`" bb-support.cpp)) ) ) )
> "bb-support.so")
>
> (run (csc bb.scm -s -O2 -d0
> -L "\"bb-support.o `fltk-config --use-images --use-gl --ldflags
> --libs`\""
> ,(if has-flu? "-L \"`flu-config --ldflags --libs`" "")
> -ld g++) )
>
> (install-extension 'bb '("bb.so"))
The only correction: flu-config requires --cxxflags rather than --cflags.
--
Sergey Khorev
http://iamphet.nm.ru
Can anybody think of a good tagline I can steal?