mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makefile.in: verify-static-library
* Makefile.in (verify-static-library): separate from LIBRUBY_A. no check every times by default. * lib/mkmf.rb (try_link): remove debugging symbol directory after linking, instead of try_do. * lib/mkmf.rb (try_link): bccwin32 support has been removed long ago. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eeea1b3883
commit
e3e2a2c715
2 changed files with 5 additions and 3 deletions
|
@ -234,9 +234,11 @@ $(LIBRUBY_A):
|
|||
$(ECHO) linking static-library $@
|
||||
$(Q) $(AR) $(ARFLAGS) $@ $(LIBRUBY_A_OBJS) $(INITOBJS)
|
||||
@-$(RANLIB) $@ 2> /dev/null || true
|
||||
|
||||
verify-static-library: $(LIBRUBY_A)
|
||||
$(ECHO) verifying static-library $@
|
||||
@$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)conftest$(EXEEXT)
|
||||
@$(RM) conftest$(EXEEXT) conftest.c
|
||||
@$(RMALL) conftest$(EXEEXT) conftest.c conftest.dSYM
|
||||
|
||||
$(LIBRUBY_SO):
|
||||
@-$(PRE_LIBRUBY_UPDATE)
|
||||
|
|
|
@ -464,7 +464,6 @@ MSG
|
|||
xsystem(command, *opts)
|
||||
ensure
|
||||
log_src(src)
|
||||
MakeMakefile.rm_rf "#{CONFTEST}.dSYM"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -556,7 +555,8 @@ MSG
|
|||
def try_link(src, opt="", *opts, &b)
|
||||
try_link0(src, opt, *opts, &b)
|
||||
ensure
|
||||
MakeMakefile.rm_f "#{CONFTEST}*", "c0x32*"
|
||||
MakeMakefile.rm_f "#{CONFTEST}*"
|
||||
MakeMakefile.rm_rf "#{CONFTEST}.dSYM"
|
||||
end
|
||||
|
||||
# Returns whether or not the +src+ can be compiled as a C source. +opt+ is
|
||||
|
|
Loading…
Reference in a new issue