summaryrefslogtreecommitdiff
path: root/ext/win32ole/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/extconf.rb')
-rw-r--r--ext/win32ole/extconf.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
index 893793382b..95f229b041 100644
--- a/ext/win32ole/extconf.rb
+++ b/ext/win32ole/extconf.rb
@@ -4,7 +4,13 @@
#----------------------------------
require 'mkmf'
-dir_config("win32")
+case RUBY_PLATFORM
+when /cygwin/
+ inc = nil
+ lib = '/usr/lib/w32api'
+end
+
+dir_config("win32", inc, lib)
SRCFILES=<<SRC
win32ole.c
@@ -19,7 +25,7 @@ end
def create_win32ole_makefile
if have_library("ole32") and
have_library("oleaut32") and
- have_library("uuid") and
+ have_library("uuid", "&CLSID_CMultiLanguage", "mlang.h") and
have_library("user32") and
have_library("kernel32") and
have_library("advapi32") and