mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
gmake.mk: des_tables.c condition
* defs/gmake.mk (missing/des_tables.c): fix cross compiling condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b1b1f3ded2
commit
a41206a110
1 changed files with 4 additions and 3 deletions
|
@ -79,13 +79,14 @@ yes-test-all no-test-all: install
|
|||
endif
|
||||
|
||||
$(srcdir)/missing/des_tables.c: $(srcdir)/missing/crypt.c
|
||||
ifeq ($(if $(CC),$(CROSS_COMPILING),yes),yes)
|
||||
ifeq ($(if $(filter yes,$(CROSS_COMPILING)),,$(CC)),)
|
||||
touch $@
|
||||
else
|
||||
@$(ECHO) building make_des_table
|
||||
$(Q) $(PURIFY) $(CC) $(CPPFLAGS) -DDUMP $(LDFLAGS) $(XLDFLAGS) $(LIBS) $(OUTFLAG)make_des_table $(srcdir)/missing/crypt.c
|
||||
$(CC) $(CPPFLAGS) -DDUMP $(LDFLAGS) $(XLDFLAGS) $(LIBS) -omake_des_table $(srcdir)/missing/crypt.c
|
||||
@[ -x ./make_des_table ]
|
||||
@$(ECHO) generating $@
|
||||
$(Q) $(MAKEDIRS) $(@D)
|
||||
$(Q) ./make_des_table > $@
|
||||
$(Q) ./make_des_table | $(srcdir)/tool/ifchange $@ -
|
||||
$(Q) $(RMALL) make_des_table*
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue