[ruby-core:32831] [Ruby 1.9-Feature#3943] enabling builds with llvm-gcc

From: Jon Forums <redmine@...>
Date: 2010-10-17 15:41:50 UTC
List: ruby-core #32831
Issue #3943 has been updated by Jon Forums.

File 0001-backport-rc32776-llvm-gcc-build-to-ruby_1_9_2.patch added

Unsurprisingly, the attached backport patch for ruby_1_9_2 also works for me and also results in the previously mentioned warning issues.

Jon
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3943

----------------------------------------
http://redmine.ruby-lang.org

Attachments (1)

diff --git a/Makefile.in b/Makefile.in
index 9c4a238..c3d3de9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -11,6 +11,7 @@ top_srcdir = $(srcdir)
 hdrdir = $(srcdir)/include
 
 CC = @CC@
+CPP = @CPP@
 YACC = bison
 PURIFY =
 AUTOCONF = autoconf
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in
index eb6967a..e1cb84d 100644
--- a/cygwin/GNUmakefile.in
+++ b/cygwin/GNUmakefile.in
@@ -2,7 +2,8 @@ include Makefile
 -include uncommon.mk
 
 ENABLE_SHARED=@ENABLE_SHARED@
-DLLWRAP = @DLLWRAP@ --target=@target_os@
+DLLWRAP = @DLLWRAP@ --target=@target_os@ --driver-name="$(CC)"
+WINDRES = @WINDRES@ --preprocessor="$(CPP) -xc" -DRC_INVOKED
 
 ifeq (@target_os@,cygwin)
   DLL_BASE_NAME := $(LIBRUBY_SO:.dll=)
@@ -38,7 +39,7 @@ $(LIBRUBY): $(RUBY_EXP) $(LIBRUBY_SO)
 $(RUBY_EXP) $(LIBRUBY_SO): $(DLL_BASE_NAME).res.@OBJEXT@
 
 %.res.@OBJEXT@: %.rc
-	@WINDRES@ --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@
+	$(WINDRES) --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@
 
 $(RCFILES): $(RBCONFIG)
 	@$(MINIRUBY) $(srcdir)/win32/resource.rb \

In This Thread