Kubo Takehiro created JRUBY-6660:
------------------------------------
Summary: An invalid Makefile is genereated when a 'depend' file
exists.
Key: JRUBY-6660
URL: https://jira.codehaus.org/browse/JRUBY-6660
Project: JRuby
Issue Type: Bug
Components: C Extensions
Affects Versions: JRuby 1.7
Environment: jruby 1.7.0.dev (ruby-1.9.3-p203) (2012-05-12 ab6cb39)
(OpenJDK 64-Bit Server VM 1.7.0_03) [linux-amd64-java]
Reporter: Kubo Takehiro
Assignee: Thomas E Enebo
Assume a file named 'depend', which has the following content, exists.
{code}
foo.o: foo.c foo.h
bar.o: bar.c bar.h
{code}
The content is added to the end of Makefile generated by create_makefile.
It works fine with jruby-1.6.7, but doesn't work with jruby trunk head.
Here is a patch.
{code}
--- a/lib/ruby/shared/mkmf.rb
+++ b/lib/ruby/shared/mkmf.rb
@@ -1737,7 +1737,7 @@ site-install-rb: install-rb
mfile.print ".SUFFIXES: .", suffixes.uniq.join(" ."), "\n\n"
end
mfile.print "$(OBJS): $(RUBY_EXTCONF_H)\n\n" if $extconf_h
- mfile.print depout
+ mfile.print *depout
else
headers = []
if RULE_SUBST
(
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email