chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] New patch for bb


From: felix
Subject: Re: [Chicken-users] New patch for bb
Date: Wed, 29 Sep 2004 21:31:41 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Sergey Khorev wrote:
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.



Ok. The new egg is available over the website, now.

Many thanks again!


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]