File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -678,14 +678,14 @@ def patch_win32_makefile_sub
678678 target_content . each_line do |line |
679679 if found . zero? && ( line =~ /^CFLAGS = (.*)$/ )
680680 found = 1
681- if Regexp . last_match ( 1 ) . ends_with ?( " #{ @cflags } " )
681+ if Regexp . last_match ( 1 ) . end_with ?( " #{ @cflags } " )
682682 f . puts line
683683 else
684684 f . puts "CFLAGS = #{ Regexp . last_match ( 1 ) } #{ @cflags } "
685685 end
686686 elsif found == 1 && ( line =~ /^LDFLAGS = (.*)$/ )
687687 found = 2
688- if Regexp . last_match ( 1 ) . ends_with ?( " #{ @ldflags } " )
688+ if Regexp . last_match ( 1 ) . end_with ?( " #{ @ldflags } " )
689689 f . puts line
690690 else
691691 f . puts "LDFLAGS = #{ Regexp . last_match ( 1 ) } #{ @ldflags } "
@@ -709,7 +709,7 @@ def patch_common_mk
709709 target_content . each_line do |line |
710710 if !found && ( line =~ /^INCFLAGS = (.*)$/ )
711711 found = true
712- if Regexp . last_match ( 1 ) . ends_with ?( " #{ @cflags } " )
712+ if Regexp . last_match ( 1 ) . end_with ?( " #{ @cflags } " )
713713 f . puts line
714714 else
715715 f . puts "INCFLAGS = #{ Regexp . last_match ( 1 ) } #{ @cflags } "
You can’t perform that action at this time.
0 commit comments