File: 001extconf_dlopen.patch

package info (click to toggle)
libodbc-ruby 0.99991-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 480 kB
  • ctags: 572
  • sloc: ansic: 7,160; ruby: 807; makefile: 44
file content (26 lines) | stat: -rw-r--r-- 1,686 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: libodbc-ruby-0.99991/ext/extconf.rb
===================================================================
--- libodbc-ruby-0.99991.orig/ext/extconf.rb	2010-05-04 07:56:43.000000000 +0000
+++ libodbc-ruby-0.99991/ext/extconf.rb	2010-05-04 07:57:19.000000000 +0000
@@ -93,7 +93,7 @@
   have_library("odbc32", "")
   have_library("odbccp32", "")
   have_library("user32", "")
-elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && CONFIG["CC"] =~ /gcc/ && have_func("dlopen", "dlfcn.h") && have_library("dl", "dlopen")) then
+elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && have_func("dlopen", "dlfcn.h") && have_library("dl", "dlopen")) then
   $LDFLAGS+=" -Wl,-init -Wl,ruby_odbc_init -Wl,-fini -Wl,ruby_odbc_fini"
   $CPPFLAGS+=" -DHAVE_SQLCONFIGDATASOURCE"
   $CPPFLAGS+=" -DHAVE_SQLINSTALLERERROR"
Index: libodbc-ruby-0.99991/ext/utf8/extconf.rb
===================================================================
--- libodbc-ruby-0.99991.orig/ext/utf8/extconf.rb	2010-05-04 07:57:31.000000000 +0000
+++ libodbc-ruby-0.99991/ext/utf8/extconf.rb	2010-05-04 07:57:41.000000000 +0000
@@ -122,7 +122,7 @@
   have_func("SQLReadFileDSNW", "odbcinst.h")
   have_func("SQLInstallerError", "odbcinst.h")
   have_func("SQLInstallerErrorW", "odbcinst.h")
-elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && CONFIG["CC"] =~ /gcc/ && have_func("dlopen", "dlfcn.h") && have_library("dl", "dlopen")) then
+elsif (testdlopen && PLATFORM !~ /(macos|darwin)/ && have_func("dlopen", "dlfcn.h") && have_library("dl", "dlopen")) then
   $LDFLAGS+=" -Wl,-init -Wl,ruby_odbc_init -Wl,-fini -Wl,ruby_odbc_fini"
   $CPPFLAGS+=" -DHAVE_SQLCONFIGDATASOURCE"
   $CPPFLAGS+=" -DHAVE_SQLINSTALLERERROR"