Skip to content

Commit

Permalink
Preparations for the upcomming OCI/mingw
Browse files Browse the repository at this point in the history
* Using full path to isqlt09a.lib
* Using slash instead of File.join
  • Loading branch information
santana committed Apr 6, 2008
1 parent 649b3ae commit c63e106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ext/extconf.rb
Expand Up @@ -5,18 +5,18 @@
MSWindows = /djgpp|(cyg|ms|bcc)win|mingw/

if informixdir.nil?
informixdir = RUBY_PLATFORM =~ MSWindows ? "C:\\informix" : "/usr/informix"
informixdir = RUBY_PLATFORM =~ MSWindows ? "C:/informix" : "/usr/informix"
end

esql = File.join(informixdir, "bin", "esql")
idefault = File.join(informixdir, "incl", "esql")
ldefault = [ File.join(informixdir, "lib") ]
ldefault<< File.join(informixdir, "lib", "esql") if RUBY_PLATFORM !~ MSWindows
esql = informixdir + "/bin/esql"
idefault = informixdir + "/incl/esql"
ldefault = [ informixdir + "/lib" ]
ldefault << informixdir + "/lib/esql" if RUBY_PLATFORM !~ MSWindows

dir_config("informix", idefault, ldefault)

if RUBY_PLATFORM =~ MSWindows
$libs += " isqlt09a.lib"
$libs += informixdir + "/lib/isqlt09a.lib"
else
env = "/usr/bin/env"

Expand Down

0 comments on commit c63e106

Please sign in to comment.