From: Daigo Moriwaki <daigo@debian.org>
Date: Wed, 21 Aug 2024 17:36:46 -0300
Subject: this enables a dlopen check process.

Forwarded: not-needed
---
 ext/utf8/extconf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/utf8/extconf.rb b/ext/utf8/extconf.rb
index e0a2a57..a7dfa20 100644
--- a/ext/utf8/extconf.rb
+++ b/ext/utf8/extconf.rb
@@ -124,7 +124,7 @@ elsif PLATFORM =~ /(mingw|cygwin)/ then
   have_func("SQLReadFileDSNW", header)
   have_func("SQLInstallerError", header)
   have_func("SQLInstallerErrorW", header)
-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"
