[Top][All Lists]

[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")))

(list (list "" '("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)) ) ) )

(run (csc bb.scm -s -O2 -d0
        -L "\"bb-support.o `fltk-config --use-images --use-gl --ldflags 
        ,(if has-flu? "-L \"`flu-config --ldflags --libs`" "")
        -ld g++) )

(install-extension 'bb '(""))

The only correction: flu-config requires --cxxflags rather than --cflags.

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

Many thanks again!


reply via email to

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