mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in, lib/mkmf.rb, {bcc32,win32,wince}/Makefile.sub: improve
C++ support. [ruby-dev:26089] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
756a1c457e
commit
dbbfbc5a21
6 changed files with 44 additions and 2 deletions
|
@ -1,8 +1,11 @@
|
|||
Thu Apr 21 06:44:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Apr 21 06:45:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (ruby_incpush_expand, proc_options): expand relative path
|
||||
given with -I option. [ruby-dev:26090]
|
||||
|
||||
* configure.in, lib/mkmf.rb, {bcc32,win32,wince}/Makefile.sub: improve
|
||||
C++ support. [ruby-dev:26089]
|
||||
|
||||
Thu Apr 21 01:53:09 2005 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/net/http.rb: add rdoc.
|
||||
|
|
|
@ -120,6 +120,9 @@ CFLAGS = -q -tWR -tWC $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) -w- -wsus -wcp
|
|||
!ifndef CPPFLAGS
|
||||
CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)missing
|
||||
!endif
|
||||
!ifndef CXXFLAGS
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
!endif
|
||||
!ifndef LDFLAGS
|
||||
LDFLAGS = -S:$(STACK)
|
||||
!endif
|
||||
|
@ -326,6 +329,8 @@ s,@target_vendor@,pc,;t t
|
|||
s,@target_os@,$(OS),;t t
|
||||
s,@CC@,$(CC),;t t
|
||||
s,@CPP@,cpp32,;t t
|
||||
s,@CXX@,$$(CC),;t t
|
||||
s,@LD@,$(LD),;t t
|
||||
s,@YACC@,$(YACC),;t t
|
||||
s,@RANLIB@,,;t t
|
||||
s,@AR@,$(AR),;t t
|
||||
|
|
18
configure.in
18
configure.in
|
@ -147,6 +147,7 @@ if test x"${build}" != x"${host}"; then
|
|||
AC_CHECK_TOOL(CC, gcc)
|
||||
fi
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
|
||||
RUBY_PROG_GNU_LD
|
||||
|
@ -800,6 +801,7 @@ AC_SUBST(ARCH_FLAG)dnl
|
|||
AC_SUBST(STATIC)dnl
|
||||
AC_SUBST(CCDLFLAGS)dnl
|
||||
AC_SUBST(LDSHARED)dnl
|
||||
AC_SUBST(LDSHAREDXX)dnl
|
||||
AC_SUBST(DLEXT)dnl
|
||||
AC_SUBST(DLEXT2)dnl
|
||||
AC_SUBST(LIBEXT)dnl
|
||||
|
@ -951,6 +953,22 @@ if test "$with_dln_a_out" != yes; then
|
|||
RPATHFLAG=" -Wl,-R'%1\$-s'"
|
||||
fi
|
||||
fi
|
||||
if test "${LDSHAREDXX}" = ""; then
|
||||
case "${LDSHARED}" in
|
||||
*'$(CC)'*)
|
||||
LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\$(CC)/$(CXX)/'`
|
||||
;;
|
||||
*'${CC}'*)
|
||||
LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\${CC}/${CXX}/'`
|
||||
;;
|
||||
*$CC*)
|
||||
LDSHAREDXX=`echo "${LDSHARED}" | sed "s|$CC|$CXX|"`
|
||||
;;
|
||||
ld" "*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
AC_SUBST(LINK_SO)
|
||||
AC_SUBST(LIBPATHFLAG)
|
||||
AC_SUBST(RPATHFLAG)
|
||||
|
|
|
@ -867,6 +867,7 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
|
|||
end
|
||||
mk << %{
|
||||
CC = #{CONFIG['CC']}
|
||||
CXX = #{CONFIG['CXX']}
|
||||
LIBRUBY = #{CONFIG['LIBRUBY']}
|
||||
LIBRUBY_A = #{CONFIG['LIBRUBY_A']}
|
||||
LIBRUBYARG_SHARED = #$LIBRUBYARG_SHARED
|
||||
|
@ -877,6 +878,7 @@ CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) #{$defs.join(" ")} #{$CPPFLAG
|
|||
CXXFLAGS = $(CFLAGS) #{CONFIG['CXXFLAGS']}
|
||||
DLDFLAGS = #$LDFLAGS #$DLDFLAGS #$ARCH_FLAG
|
||||
LDSHARED = #{CONFIG['LDSHARED']}
|
||||
LDSHAREDXX = #{config_string('LDSHAREDXX') || '$(LDSHARED)'}
|
||||
AR = #{CONFIG['AR']}
|
||||
EXEEXT = #{CONFIG['EXEEXT']}
|
||||
|
||||
|
@ -1086,7 +1088,11 @@ site-install-rb: install-rb
|
|||
mfile.print "$(DLLIB): ", (makedef ? "$(DEFFILE) " : ""), "$(OBJS)\n\t"
|
||||
mfile.print "@-$(RM) $@\n\t"
|
||||
mfile.print "@-$(MAKEDIRS) $(@D)\n\t" if $extout
|
||||
mfile.print LINK_SO, "\n\n"
|
||||
link_so = LINK_SO
|
||||
if srcs.any?(&%r"\.(?:#{CXX_EXT.join('|')})\z".method(:===))
|
||||
link_so = link_so.sub(/\bLDSHARED\b/, '\&XX')
|
||||
end
|
||||
mfile.print link_so, "\n\n"
|
||||
unless $static.nil?
|
||||
mfile.print "$(STATIC_LIB): $(OBJS)\n\t"
|
||||
mfile.print "$(AR) #{config_string('ARFLAGS') || 'cru '}$@ $(OBJS)"
|
||||
|
|
|
@ -116,6 +116,9 @@ CFLAGS = -MD $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG)
|
|||
!if !defined(CPPFLAGS)
|
||||
CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/missing
|
||||
!endif
|
||||
!if !defined(CXXFLAGS)
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
!endif
|
||||
!if !defined(LDFLAGS)
|
||||
LDFLAGS = -link -incremental:no -debug -opt:ref -opt:icf
|
||||
!endif
|
||||
|
@ -341,6 +344,8 @@ s,@target_vendor@,pc,;t t
|
|||
s,@target_os@,$(OS),;t t
|
||||
s,@CC@,$(CC),;t t
|
||||
s,@CPP@,$(CPP),;t t
|
||||
s,@CXX@,$$(CC),;t t
|
||||
s,@LD@,$$(CC),;t t
|
||||
s,@YACC@,$(YACC),;t t
|
||||
s,@RANLIB@,,;t t
|
||||
s,@AR@,$(AR),;t t
|
||||
|
|
|
@ -114,6 +114,9 @@ CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/missing -I$(srcdir)/wince \
|
|||
-DFILENAME_MAX=MAX_PATH -DTLS_OUT_OF_INDEXES=0xFFFFFFFF \
|
||||
-DBUFSIZ=512 -D_UNICODE -DUNICODE
|
||||
!endif
|
||||
!if !defined(CXXFLAGS)
|
||||
CXXFLAGS = $(CFLAGS)
|
||||
!endif
|
||||
!if !defined(LDFLAGS)
|
||||
LDFLAGS = -link -incremental:yes -pdb:none -machine:$(MACHINE) -subsystem:$(SUBSYSTEM)
|
||||
!endif
|
||||
|
@ -349,6 +352,8 @@ s,@target_vendor@,pc,;t t
|
|||
s,@target_os@,$(OS),;t t
|
||||
s,@CC@,$(CC),;t t
|
||||
s,@CPP@,$(CPP),;t t
|
||||
s,@CXX@,$$(CC),;t t
|
||||
s,@LD@,$$(CC),;t t
|
||||
s,@YACC@,$(YACC),;t t
|
||||
s,@RANLIB@,,;t t
|
||||
s,@AR@,$(AR),;t t
|
||||
|
|
Loading…
Reference in a new issue