Top Level Namespace

Defined Under Namespace

Modules: ActiveRecord, IBM_DB Classes: Fixtures

Constant Summary collapse

WIN =
RUBY_PLATFORM =~ /mswin/
IBM_DB_INCLUDE =

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

(ENV['IBM_DB_INCLUDE'] or 
(Dir['/opt/*/db2/*/include'].sort_by {|f| File.basename(f)}).last )
IBM_DB_LIB =
(ENV['IBM_DB_LIB'] or
(Dir['/opt/*/db2/*/lib32'].sort_by {|f| File.basename(f)}).last )

Instance Method Summary collapse

Instance Method Details

#crash(str) ⇒ Object



21
22
23
24
# File 'ext/extconf.rb', line 21

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

#libpathflag(libpath) ⇒ Object



51
52
53
54
55
56
57
58
59
60
# File 'ext/extconf.rb', line 51

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



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

alias :libpathflag0 :libpathflag