Top Level Namespace

Defined Under Namespace

Modules: ActiveRecord, IBM_DB

Constant Summary collapse

WIN =
RUBY_PLATFORM =~ /mswin/
IBM_DB_DIR =

use ENV or latest db2 you can find (we need to revisit default when db2 10.x comes out)

(ENV['IBM_DB_DIR'] or 
(Dir['/opt/*/db2/*'].sort_by {|f| File.basename(f)}).last )

Instance Method Summary collapse

Instance Method Details

#crash(str) ⇒ Object



18
19
20
21
# File 'ext/extconf.rb', line 18

def crash(str)
  printf(" extconf failure: %s\n", str)
  exit 1
end

#libpathflag(libpath) ⇒ Object



44
45
46
47
48
49
50
51
52
53
# File 'ext/extconf.rb', line 44

def libpathflag(libpath)
  libpathflag0 + case Config::CONFIG["arch"]
    when /solaris2/
      libpath[0..-2].map {|path| " -R#{path}"}.join
    when /linux/
      libpath[0..-2].map {|path| " -Wl,-rpath,#{path}"}.join
    else
      ""
  end
end

#libpathflag0Object



43
# File 'ext/extconf.rb', line 43

alias :libpathflag0 :libpathflag