Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added build clause for cygwin in extconf.rb files

  • Loading branch information...
commit 8c0e5aeff67b2c00d94c747cf586bc59eae28a46 1 parent 86784d2
@edlebert edlebert authored
Showing with 18 additions and 0 deletions.
  1. +9 −0 ext/extconf.rb
  2. +9 −0 ext/fastfilereader/extconf.rb
View
9 ext/extconf.rb
@@ -139,6 +139,15 @@ def manual_ssl_config
when /aix/
CONFIG['LDSHARED'] = "$(CXX) -shared -Wl,-G -Wl,-brtl"
+when /cygwin/
+ # For rubies built with Cygwin, CXX may be set to CC, which is just
+ # a wrapper for gcc.
+ # This will compile, but it will not link to the C++ std library.
+ # Explicitly set CXX to use g++.
+ CONFIG['CXX'] = "g++"
+ # on Unix we need a g++ link, not gcc.
+ CONFIG['LDSHARED'] = "$(CXX) -shared"
+
else
# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared"
View
9 ext/fastfilereader/extconf.rb
@@ -77,6 +77,15 @@ def add_define(name)
# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared -Wl,-G"
+when /cygwin/
+ # For rubies built with Cygwin, CXX may be set to CC, which is just
+ # a wrapper for gcc.
+ # This will compile, but it will not link to the C++ std library.
+ # Explicitly set CXX to use g++.
+ CONFIG['CXX'] = "g++"
+ # on Unix we need a g++ link, not gcc.
+ CONFIG['LDSHARED'] = "$(CXX) -shared"
+
else
# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared"
Please sign in to comment.
Something went wrong with that request. Please try again.