File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2510,16 +2510,19 @@ def create_makefile(target, srcprefix = nil)
25102510 sodir = $extout ? '$(TARGET_SO_DIR)' : '$(RUBYARCHDIR)'
25112511 n = '$(TARGET_SO_DIR)$(TARGET)'
25122512 cleanobjs = [ "$(OBJS)" ]
2513+ cleanlibs = [ ]
25132514 if $extmk
25142515 %w[ bc i s ] . each { |ex | cleanobjs << "$(OBJS:.#{ $OBJEXT} =.#{ ex } )" }
25152516 end
25162517 if target
25172518 config_string ( 'cleanobjs' ) { |t | cleanobjs << t . gsub ( /\$ \* / , "$(TARGET)#{ deffile ? '-$(arch)' : '' } " ) }
2519+ cleanlibs << '$(TARGET_SO)'
25182520 end
2521+ config_string ( 'cleanlibs' ) { |t | cleanlibs << t . gsub ( /\$ \* / ) { n } }
25192522 conf << "\
25202523 TARGET_SO_DIR =#{ $extout ? " $(RUBYARCHDIR)/" : '' }
25212524TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
2522- CLEANLIBS = #{ '$(TARGET_SO) ' if target } #{ config_string ( 'cleanlibs' ) { | t | t . gsub ( / \$ \* / ) { n } } }
2525+ CLEANLIBS = #{ cleanlibs . join ( ' ' ) }
25232526CLEANOBJS = #{ cleanobjs . join ( ' ' ) } *.bak
25242527TARGET_SO_DIR_TIMESTAMP = #{ timestamp_file ( sodir , target_prefix ) }
25252528" #"
You can’t perform that action at this time.
0 commit comments