Skip to content

Instantly share code, notes, and snippets.

@mattn
Created September 2, 2016 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/84cae0c8cb90d01c0f5276fd177257c5 to your computer and use it in GitHub Desktop.
Save mattn/84cae0c8cb90d01c0f5276fd177257c5 to your computer and use it in GitHub Desktop.
--- extconf.rb.orig 2016-09-02 12:20:07.096771900 +0900
+++ extconf.rb 2016-09-02 12:20:09.449007100 +0900
@@ -46,7 +46,7 @@
check_heads(%w[windows.h winsock.h], true)
check_libs(%w[kernel32 rpcrt4 gdi32], true)
- if GNU_CHAIN
+ if Object.const_defined?(:GNU_CHAIN)
CONFIG['LDSHARED'] = "$(CXX) -shared -lstdc++"
else
$defs.push "-EHs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment