Wall is not a portable cc option ... if this is to be used we would have to check
[rrdtool.git] / bindings / ruby / extconf.rb
1 # $Id: extconf.rb,v 1.2 2001/11/28 18:30:16 miles Exp $
2 # Lost ticket pays maximum rate.
3
4 require 'mkmf'
5
6 if /linux/ =~ RUBY_PLATFORM
7    $LDFLAGS += '-Wl,--rpath -Wl,$(EPREFIX)/lib'
8 elsif /solaris/ =~ RUBY_PLATFORM
9    $LDFLAGS += '-R$(EPREFIX)/lib'
10 elsif /hpux/ =~ RUBY_PLATFORM
11    $LDFLAGS += '+b$(EPREFIX)/lib'
12 elsif /aix/ =~ RUBY_PLATFORM
13    $LDFLAGS += '-Wl,-blibpath:$(EPREFIX)/lib'
14 end
15
16 dir_config("rrd","../../src","../../src/.libs")
17 have_library("rrd", "rrd_create")
18 create_makefile("RRD")