summaryrefslogtreecommitdiffstats
path: root/rubygem-typhoeus-gcc-flags-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rubygem-typhoeus-gcc-flags-fix.patch')
-rw-r--r--rubygem-typhoeus-gcc-flags-fix.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/rubygem-typhoeus-gcc-flags-fix.patch b/rubygem-typhoeus-gcc-flags-fix.patch
new file mode 100644
index 0000000..4f56370
--- /dev/null
+++ b/rubygem-typhoeus-gcc-flags-fix.patch
@@ -0,0 +1,31 @@
+*** ext/typhoeus/extconf.rb 2010-10-04 13:39:02.983245045 +0200
+--- ext/typhoeus/extconf.rb.new 2010-10-13 15:07:43.289099195 +0200
+***************
+*** 25,31 ****
+ use_macports = !(defined?(RUBY_ENGINE) && RUBY_ENGINE != 'ruby')
+ $LIBPATH << "/opt/local/lib" if use_macports
+
+! $CFLAGS << " -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline"
+
+ if Config::CONFIG['target_os'] == 'mingw32'
+ header = File.join(ROOT, 'cross', 'curl-7.19.4.win32', 'include')
+--- 25,31 ----
+ use_macports = !(defined?(RUBY_ENGINE) && RUBY_ENGINE != 'ruby')
+ $LIBPATH << "/opt/local/lib" if use_macports
+
+! $CFLAGS << " -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline"
+
+ if Config::CONFIG['target_os'] == 'mingw32'
+ header = File.join(ROOT, 'cross', 'curl-7.19.4.win32', 'include')
+***************
+*** 62,65 ****
+ )
+ end
+
+! create_makefile("typhoeus/native")
+\ No newline at end of file
+--- 62,65 ----
+ )
+ end
+
+! create_makefile("typhoeus/native")