From 9a8cc1f4abdeacb4adf1a7b59fe2bd6f4ea0ad70 Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 30 Nov 2003 09:33:03 +0000 Subject: * configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS, DLDFLAGS and LDSHARED. * configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is reflected in CFLAGS. * lib/mkmf.rb: ditto. do not import XCFLAGS from config.status. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++ configure.in | 161 +++++++++++++++++++++++++++++------------------------------ lib/mkmf.rb | 6 +-- 3 files changed, 91 insertions(+), 86 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a01e904e8..1ce251ba54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Sun Nov 30 18:22:48 2003 WATANABE Hirofumi + + * configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS, + DLDFLAGS and LDSHARED. + + * configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is + reflected in CFLAGS. + + * lib/mkmf.rb: ditto. do not import XCFLAGS from config.status. + Sun Nov 30 17:37:36 2003 Hidetoshi NAGAI * ext/tk/lib/tk.rb: bug fix [ruby-talk:86746] diff --git a/configure.in b/configure.in index b6bed4aa40..c5b3983ecb 100644 --- a/configure.in +++ b/configure.in @@ -151,7 +151,7 @@ AC_PROG_GCC_TRADITIONAL RUBY_PROG_GNU_LD RUBY_CPPOUTFILE -OUTFLAG='-o ' +: ${OUTFLAG='-o '} AC_SUBST(OUTFLAG) RUBY_MINGW32 @@ -174,11 +174,8 @@ cygwin*|mingw*) aix*) AC_CHECK_TOOL(NM, nm, /usr/ccs/bin/nm, /usr/ccs/bin:$PATH) ;; -esac - -# by TOYODA Eizi -case "$target_os" in hiuxmpp*) + # by TOYODA Eizi AC_DEFINE(__HIUX_MPP__) ;; esac @@ -782,7 +779,7 @@ linux*) with_dln_a_out=yes target_os=${target_os}-a_out else - LDFLAGS="-rdynamic" + LDFLAGS="$LDFLAGS -rdynamic" fi;; netbsd*|openbsd*) if [[ "`$CC -dM -E - $INCFLAGS, 'CPPFLAGS' => $CPPFLAGS, 'CFLAGS' => "#$CFLAGS", - 'XCFLAGS' => "#$XCFLAGS", 'LDFLAGS' => "#$LDFLAGS #{ldflags}", 'LIBPATH' => libpathflag(libpath), 'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs", @@ -224,7 +223,7 @@ end def cc_command(opt="") "$(CC) -c #$INCFLAGS -I#{$hdrdir} " \ - "#$CPPFLAGS #$CFLAGS #$XCFLAGS #{opt} #{CONFTEST_C}" + "#$CPPFLAGS #$CFLAGS #{opt} #{CONFTEST_C}" end def cpp_command(outfile, opt="") @@ -721,7 +720,7 @@ LIBRUBY_A = #{CONFIG['LIBRUBY_A']} LIBRUBYARG_SHARED = #$LIBRUBYARG_SHARED LIBRUBYARG_STATIC = #$LIBRUBYARG_STATIC -CFLAGS = #{CONFIG['CCDLFLAGS'] unless $static} #{CONFIG['XCFLAGS']} #$CFLAGS +CFLAGS = #{CONFIG['CCDLFLAGS'] unless $static} #$CFLAGS CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) #{$defs.join(" ")} #{$CPPFLAGS} CXXFLAGS = $(CFLAGS) #{CONFIG['CXXFLAGS']} DLDFLAGS = #$LDFLAGS #{CONFIG['DLDFLAGS']} #$DLDFLAGS @@ -944,7 +943,6 @@ def init_mkmf(config = CONFIG) $enable_shared = config['ENABLE_SHARED'] == 'yes' $defs = [] $CFLAGS = with_config("cflags", arg_config("CFLAGS", config["CFLAGS"])).dup - $XCFLAGS = config['XCFLAGS'].dup $CPPFLAGS = with_config("cppflags", arg_config("CPPFLAGS", config["CPPFLAGS"])).dup $LDFLAGS = (with_config("ldflags") || "").dup $INCFLAGS = "-I#{$topdir}" -- cgit v1.2.3