From: oetiker Date: Mon, 20 Dec 2010 07:03:40 +0000 (+0000) Subject: add extra space to LDFLAGS when building ruby bindings ... otherwhise this will break... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31b8a1b63f8d18ad7a4787f6f1d091f388b628bd;p=rrdtool.git add extra space to LDFLAGS when building ruby bindings ... otherwhise this will break if there is already content in LDFLAGS ... fix for #284 thanks dam at opencsw. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2151 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb index 2045e5a..164a525 100644 --- a/bindings/ruby/extconf.rb +++ b/bindings/ruby/extconf.rb @@ -4,13 +4,13 @@ require 'mkmf' if /linux/ =~ RUBY_PLATFORM - $LDFLAGS += '-Wl,--rpath -Wl,$(EPREFIX)/lib' + $LDFLAGS += ' -Wl,--rpath -Wl,$(EPREFIX)/lib' elsif /solaris/ =~ RUBY_PLATFORM - $LDFLAGS += '-R$(EPREFIX)/lib' + $LDFLAGS += ' -R$(EPREFIX)/lib' elsif /hpux/ =~ RUBY_PLATFORM - $LDFLAGS += '+b$(EPREFIX)/lib' + $LDFLAGS += ' +b$(EPREFIX)/lib' elsif /aix/ =~ RUBY_PLATFORM - $LDFLAGS += '-Wl,-blibpath:$(EPREFIX)/lib' + $LDFLAGS += ' -blibpath:$(EPREFIX)/lib' end dir_config("rrd","../../src","../../src/.libs")