diff --git a/ChangeLog b/ChangeLog index b49fec9d20..7fb0364b1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Oct 11 22:11:58 2014 Yuki Yugui Sonoda + + * ext/extmk.rb: generates the rule for extinit.$(OBJEXT). + extinit.$(OBJEXT) used to be generated by the builtin rule, thus + didn't accept custom $(CC) and caused linkage error for cross + compiling. + Sat Oct 11 18:46:50 2014 Yuki Yugui Sonoda * include/ruby/intern.h (rb_fd_select): declare struct timeval, or the diff --git a/ext/extmk.rb b/ext/extmk.rb index 3a240aad0b..e0cd0f11b1 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -724,6 +724,7 @@ if $configure_only and $command_output rubies.each do |tgt| mf.puts "#{tgt}:\n\t#{submake} $@" end + mf.puts "ext/extinit.#{$OBJEXT}:\n\t$(Q)$(MAKE) $(MFLAGS) V=$(V) $@" if $static mf.puts if $gnumake == "yes" submake = "$(MAKE) -C $(@D)"