Skip to content

Commit

Permalink
dmyenc.c: separate
Browse files Browse the repository at this point in the history
* dmyenc.c (Init_enc): separate from dmyext.c for statically
  linked extension excluding encoding libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Nov 27, 2014
1 parent 3c45a56 commit 28ad79f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Fri Nov 28 05:02:29 2014 Nobuyoshi Nakada <[email protected]>

* dmyenc.c (Init_enc): separate from dmyext.c for statically
linked extension excluding encoding libraries.

Thu Nov 27 21:58:30 2014 Tanaka Akira <[email protected]>

* common.mk (miniprelude.c): It does not depend on prelude.rb now.
Expand Down
5 changes: 2 additions & 3 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ PLATFORM_D = ./$(PLATFORM_DIR)/.time
RDOCOUT = $(EXTOUT)/rdoc
CAPIOUT = doc/capi

DMYEXT = dmyext.$(OBJEXT)
DMYEXT = dmyext.$(OBJEXT) dmyenc.$(OBJEXT)
NORMALMAINOBJ = main.$(OBJEXT)
MAINOBJ = $(NORMALMAINOBJ)
EXTOBJS =
DLDOBJS = $(DMYEXT)
EXTSOLIBS =
MINIOBJS = $(ARCHMINIOBJS) miniinit.$(OBJEXT) miniprelude.$(OBJEXT)
Expand Down Expand Up @@ -459,7 +458,7 @@ clear-installed-list: PHONY
clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-capi clean-extout clean-platform
clean-local:: clean-runnable
$(Q)$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
$(Q)$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
$(Q)$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) dmyenc.$(OBJEXT) $(ARCHFILE) .*.time
$(Q)$(RM) y.tab.c y.output encdb.h transdb.h config.log rbconfig.rb $(ruby_pc) probes.h probes.$(OBJEXT) probes.stamp ruby-glommed.$(OBJEXT)
$(Q)$(RM) GNUmakefile.old Makefile.old $(arch)-fake.rb
clean-runnable:: PHONY
Expand Down
3 changes: 3 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -3240,6 +3240,9 @@ AS_CASE([",$EXTSTATIC,"], [,static,|*,enc,*], [
EXTOBJS='ext/extinit.$(OBJEXT)'
AC_DEFINE_UNQUOTED(EXTSTATIC, 1)
AC_SUBST(ENCSTATIC, static)
], [
ENCOBJS='dmyenc.$(OBJEXT)'
EXTOBJS='dmyext.$(OBJEXT)'
])
AC_SUBST(ENCOBJS)
AC_SUBST(EXTOBJS)
Expand Down
4 changes: 4 additions & 0 deletions dmyenc.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
void
Init_enc(void)
{
}
5 changes: 0 additions & 5 deletions dmyext.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ void
Init_ext(void)
{
}

void
Init_enc(void)
{
}
3 changes: 3 additions & 0 deletions win32/Makefile.sub
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ EXTOBJS = ext/extinit.$(OBJEXT)
! if !defined(ENCSTATIC)
ENCSTATIC = static
! endif
!else
ENCOBJS = dmyenc.$(OBJEXT)
EXTOBJS = dmyext.$(OBJEXT)
!endif

arch_hdrdir = $(EXTOUT)/include/$(arch)
Expand Down

0 comments on commit 28ad79f

Please sign in to comment.