On Tue, Jul 01, 2003 at 10:30:20PM +0200, Michael Roth wrote:
> Hi,
>
> I'm a newbie at ruby and I would like to pass ruby-dbi alternative
> compiler and linker flags, like:
>
> ruby setup.rb config --with=dbi,dbd_something
>
> CC=gcc-3.3
> CFLAGS=-I/some_path/include
> LDFLAGS=-L/some_path/lib
>
> ruby setup.rb setup
> ruby setup.rb install
>
> Maybe I'm a little stupid, because I'm don't know how to do it.
Add these lines to extconf.rb file for dbd_something (look at ext/
directory):
$CC = "gcc-3.3"
$CFLAGS += " -I/some_path/include"
$LDFLAGS += " -L/some_path/lib"
Then try again.
Hope this helps.
Regards,
Michael
|