Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../opt/alt/ruby30/lib64/ruby
File: rbconfig.rb
# encoding: ascii-8bit
[0] Fix | Delete
# frozen-string-literal: false
[1] Fix | Delete
#
[2] Fix | Delete
# The module storing Ruby interpreter configurations on building.
[3] Fix | Delete
#
[4] Fix | Delete
# This file was created by mkconfig.rb when ruby was built. It contains
[5] Fix | Delete
# build information for ruby which is used e.g. by mkmf to build
[6] Fix | Delete
# compatible native extensions. Any changes made to this file will be
[7] Fix | Delete
# lost the next time ruby is built.
[8] Fix | Delete
[9] Fix | Delete
module RbConfig
[10] Fix | Delete
RUBY_VERSION.start_with?("3.0.") or
[11] Fix | Delete
raise "ruby lib version (3.0.7) doesn't match executable version (#{RUBY_VERSION})"
[12] Fix | Delete
[13] Fix | Delete
# Ruby installed directory.
[14] Fix | Delete
TOPDIR = File.dirname(__FILE__).chomp!("/lib64/ruby")
[15] Fix | Delete
# DESTDIR on make install.
[16] Fix | Delete
DESTDIR = '' unless defined? DESTDIR
[17] Fix | Delete
# The hash configurations stored.
[18] Fix | Delete
CONFIG = {}
[19] Fix | Delete
CONFIG["DESTDIR"] = DESTDIR
[20] Fix | Delete
CONFIG["MAJOR"] = "3"
[21] Fix | Delete
CONFIG["MINOR"] = "0"
[22] Fix | Delete
CONFIG["TEENY"] = "7"
[23] Fix | Delete
CONFIG["PATCHLEVEL"] = "220"
[24] Fix | Delete
CONFIG["INSTALL"] = '/usr/bin/install -c'
[25] Fix | Delete
CONFIG["EXEEXT"] = ""
[26] Fix | Delete
CONFIG["prefix"] = (((TOPDIR && TOPDIR.empty?) ? nil : TOPDIR) || DESTDIR + "/opt/alt/ruby30")
[27] Fix | Delete
CONFIG["ruby_install_name"] = "$(RUBY_BASE_NAME)"
[28] Fix | Delete
CONFIG["RUBY_INSTALL_NAME"] = "$(RUBY_BASE_NAME)"
[29] Fix | Delete
CONFIG["RUBY_SO_NAME"] = "$(RUBY_BASE_NAME)"
[30] Fix | Delete
CONFIG["exec"] = "exec"
[31] Fix | Delete
CONFIG["ruby_pc"] = "ruby.pc"
[32] Fix | Delete
CONFIG["CC_WRAPPER"] = ""
[33] Fix | Delete
CONFIG["PACKAGE"] = "ruby"
[34] Fix | Delete
CONFIG["BUILTIN_TRANSSRCS"] = " enc/trans/newline.c"
[35] Fix | Delete
CONFIG["MANTYPE"] = "doc"
[36] Fix | Delete
CONFIG["vendorarchhdrdir"] = "$(vendorhdrdir)/$(arch)"
[37] Fix | Delete
CONFIG["sitearchhdrdir"] = "$(sitehdrdir)/$(arch)"
[38] Fix | Delete
CONFIG["rubyarchhdrdir"] = "$(DESTDIR)/opt/alt/ruby30/include"
[39] Fix | Delete
CONFIG["vendorhdrdir"] = "$(rubyhdrdir)/vendor_ruby"
[40] Fix | Delete
CONFIG["sitehdrdir"] = "$(rubyhdrdir)/site_ruby"
[41] Fix | Delete
CONFIG["rubyhdrdir"] = "$(DESTDIR)/opt/alt/ruby30/include"
[42] Fix | Delete
CONFIG["RUBY_SEARCH_PATH"] = ""
[43] Fix | Delete
CONFIG["UNIVERSAL_INTS"] = ""
[44] Fix | Delete
CONFIG["UNIVERSAL_ARCHNAMES"] = ""
[45] Fix | Delete
CONFIG["configure_args"] = " '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/alt/ruby30' '--exec-prefix=/opt/alt/ruby30' '--bindir=/opt/alt/ruby30/bin' '--sbindir=/opt/alt/ruby30/sbin' '--sysconfdir=/etc' '--datadir=/opt/alt/ruby30/share' '--includedir=/opt/alt/ruby30/include' '--libdir=/opt/alt/ruby30/lib64' '--libexecdir=/opt/alt/ruby30/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/opt/alt/ruby30/share/man' '--infodir=/opt/alt/ruby30/share/info' '--with-rubylibprefix=/opt/alt/ruby30/share/ruby' '--with-archlibdir=/opt/alt/ruby30/lib64' '--with-rubyarchprefix=/opt/alt/ruby30/lib64/ruby' '--with-sitedir=/opt/alt/ruby30/share/ruby/site_ruby' '--with-sitearchdir=/opt/alt/ruby30/lib64/ruby/site_ruby' '--with-vendordir=/opt/alt/ruby30/share/ruby/vendor_ruby' '--with-vendorarchdir=/opt/alt/ruby30/lib64/ruby/vendor_ruby' '--with-rubyhdrdir=/opt/alt/ruby30/include' '--with-rubyarchhdrdir=/opt/alt/ruby30/include' '--with-sitearchhdrdir=$$(sitehdrdir)/$$(arch)' '--with-vendorarchhdrdir=$$(vendorhdrdir)/$$(arch)' '--with-rubygemsdir=/opt/alt/ruby30/share/rubygems' '--with-ruby-pc=ruby.pc' '--with-compress-debug-sections=no' '--enable-shared' '--with-ruby-version=' '--enable-multiarch' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'"
[46] Fix | Delete
CONFIG["CONFIGURE"] = "configure"
[47] Fix | Delete
CONFIG["rubygemsdir"] = "$(DESTDIR)/opt/alt/ruby30/share/rubygems"
[48] Fix | Delete
CONFIG["vendorarchdir"] = "$(DESTDIR)/opt/alt/ruby30/lib64/ruby/vendor_ruby"
[49] Fix | Delete
CONFIG["vendorlibdir"] = "$(vendordir)"
[50] Fix | Delete
CONFIG["vendordir"] = "$(DESTDIR)/opt/alt/ruby30/share/ruby/vendor_ruby"
[51] Fix | Delete
CONFIG["sitearchdir"] = "$(DESTDIR)/opt/alt/ruby30/lib64/ruby/site_ruby"
[52] Fix | Delete
CONFIG["sitelibdir"] = "$(sitedir)"
[53] Fix | Delete
CONFIG["sitedir"] = "$(DESTDIR)/opt/alt/ruby30/share/ruby/site_ruby"
[54] Fix | Delete
CONFIG["rubyarchdir"] = "$(rubyarchprefix)"
[55] Fix | Delete
CONFIG["rubylibdir"] = "$(rubylibprefix)"
[56] Fix | Delete
CONFIG["ruby_version_dir_name"] = ""
[57] Fix | Delete
CONFIG["ruby_version"] = "3.0.0"
[58] Fix | Delete
CONFIG["sitearch"] = "$(arch)"
[59] Fix | Delete
CONFIG["arch"] = "x86_64-linux"
[60] Fix | Delete
CONFIG["sitearchincludedir"] = "$(includedir)/$(sitearch)"
[61] Fix | Delete
CONFIG["archincludedir"] = "$(includedir)/$(arch)"
[62] Fix | Delete
CONFIG["sitearchlibdir"] = "$(libdir)/$(sitearch)"
[63] Fix | Delete
CONFIG["archlibdir"] = "$(DESTDIR)/opt/alt/ruby30/lib64"
[64] Fix | Delete
CONFIG["libdirname"] = "archlibdir"
[65] Fix | Delete
CONFIG["RUBY_EXEC_PREFIX"] = "/opt/alt/ruby30"
[66] Fix | Delete
CONFIG["RUBY_LIB_VERSION"] = "3.0.0"
[67] Fix | Delete
CONFIG["RUBY_LIB_VERSION_STYLE"] = "3\t/* full */"
[68] Fix | Delete
CONFIG["RI_BASE_NAME"] = "ri"
[69] Fix | Delete
CONFIG["ridir"] = "$(datarootdir)/$(RI_BASE_NAME)"
[70] Fix | Delete
CONFIG["rubysitearchprefix"] = "$(sitearchlibdir)/$(RUBY_BASE_NAME)"
[71] Fix | Delete
CONFIG["rubyarchprefix"] = "/opt/alt/ruby30/lib64/ruby"
[72] Fix | Delete
CONFIG["MAKEFILES"] = "Makefile GNUmakefile"
[73] Fix | Delete
CONFIG["PLATFORM_DIR"] = ""
[74] Fix | Delete
CONFIG["THREAD_MODEL"] = "pthread"
[75] Fix | Delete
CONFIG["SYMBOL_PREFIX"] = ""
[76] Fix | Delete
CONFIG["EXPORT_PREFIX"] = ""
[77] Fix | Delete
CONFIG["COMMON_HEADERS"] = ""
[78] Fix | Delete
CONFIG["COMMON_MACROS"] = ""
[79] Fix | Delete
CONFIG["COMMON_LIBS"] = ""
[80] Fix | Delete
CONFIG["MAINLIBS"] = "-lz -lpthread -lrt -lrt -lgmp -ldl -lcrypt -lm "
[81] Fix | Delete
CONFIG["ENABLE_SHARED"] = "yes"
[82] Fix | Delete
CONFIG["DLDSHARED"] = "$(CC) -shared"
[83] Fix | Delete
CONFIG["DLDLIBS"] = " -lc"
[84] Fix | Delete
CONFIG["SOLIBS"] = "$(MAINLIBS)"
[85] Fix | Delete
CONFIG["LIBRUBYARG_SHARED"] = "-Wl,-rpath,$(archlibdir) -L$(archlibdir) -l$(RUBY_SO_NAME)"
[86] Fix | Delete
CONFIG["LIBRUBYARG_STATIC"] = "-Wl,-rpath,$(archlibdir) -L$(archlibdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)"
[87] Fix | Delete
CONFIG["LIBRUBYARG"] = "$(LIBRUBYARG_SHARED)"
[88] Fix | Delete
CONFIG["LIBRUBY"] = "$(LIBRUBY_SO)"
[89] Fix | Delete
CONFIG["LIBRUBY_ALIASES"] = "$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)"
[90] Fix | Delete
CONFIG["LIBRUBY_SONAME"] = "lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_API_VERSION)"
[91] Fix | Delete
CONFIG["LIBRUBY_SO"] = "lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_PROGRAM_VERSION)"
[92] Fix | Delete
CONFIG["LIBRUBY_A"] = "lib$(RUBY_SO_NAME)-static.a"
[93] Fix | Delete
CONFIG["RUBYW_INSTALL_NAME"] = ""
[94] Fix | Delete
CONFIG["rubyw_install_name"] = ""
[95] Fix | Delete
CONFIG["EXTDLDFLAGS"] = ""
[96] Fix | Delete
CONFIG["EXTLDFLAGS"] = ""
[97] Fix | Delete
CONFIG["strict_warnflags"] = "-std=gnu99"
[98] Fix | Delete
CONFIG["warnflags"] = "-Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable"
[99] Fix | Delete
CONFIG["debugflags"] = "-ggdb3"
[100] Fix | Delete
CONFIG["optflags"] = "-O3"
[101] Fix | Delete
CONFIG["NULLCMD"] = ":"
[102] Fix | Delete
CONFIG["ENABLE_DEBUG_ENV"] = ""
[103] Fix | Delete
CONFIG["DLNOBJ"] = "dln.o"
[104] Fix | Delete
CONFIG["INSTALL_STATIC_LIBRARY"] = "no"
[105] Fix | Delete
CONFIG["MJIT_SUPPORT"] = "yes"
[106] Fix | Delete
CONFIG["EXECUTABLE_EXTS"] = ""
[107] Fix | Delete
CONFIG["ARCHFILE"] = ""
[108] Fix | Delete
CONFIG["LIBRUBY_RELATIVE"] = "no"
[109] Fix | Delete
CONFIG["EXTOUT"] = ".ext"
[110] Fix | Delete
CONFIG["PREP"] = "miniruby$(EXEEXT)"
[111] Fix | Delete
CONFIG["CROSS_COMPILING"] = "no"
[112] Fix | Delete
CONFIG["TEST_RUNNABLE"] = "yes"
[113] Fix | Delete
CONFIG["rubylibprefix"] = "$(exec_prefix)/share/ruby"
[114] Fix | Delete
CONFIG["setup"] = "Setup"
[115] Fix | Delete
CONFIG["ENCSTATIC"] = ""
[116] Fix | Delete
CONFIG["EXTSTATIC"] = ""
[117] Fix | Delete
CONFIG["SOEXT"] = "so"
[118] Fix | Delete
CONFIG["TRY_LINK"] = ""
[119] Fix | Delete
CONFIG["PRELOADENV"] = "LD_PRELOAD"
[120] Fix | Delete
CONFIG["LIBPATHENV"] = "LD_LIBRARY_PATH"
[121] Fix | Delete
CONFIG["RPATHFLAG"] = " -Wl,-rpath,%1$-s"
[122] Fix | Delete
CONFIG["LIBPATHFLAG"] = " -L%1$-s"
[123] Fix | Delete
CONFIG["LINK_SO"] = ""
[124] Fix | Delete
CONFIG["ADDITIONAL_DLDFLAGS"] = ""
[125] Fix | Delete
CONFIG["ASMEXT"] = "S"
[126] Fix | Delete
CONFIG["LIBEXT"] = "a"
[127] Fix | Delete
CONFIG["DLEXT2"] = ""
[128] Fix | Delete
CONFIG["DLEXT"] = "so"
[129] Fix | Delete
CONFIG["LDSHAREDXX"] = "$(CXX) -shared"
[130] Fix | Delete
CONFIG["LDSHARED"] = "$(CC) -shared"
[131] Fix | Delete
CONFIG["CCDLFLAGS"] = "-fPIC"
[132] Fix | Delete
CONFIG["STATIC"] = ""
[133] Fix | Delete
CONFIG["ARCH_FLAG"] = "-m64"
[134] Fix | Delete
CONFIG["DLDFLAGS"] = "-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"
[135] Fix | Delete
CONFIG["ALLOCA"] = ""
[136] Fix | Delete
CONFIG["dsymutil"] = ""
[137] Fix | Delete
CONFIG["codesign"] = ""
[138] Fix | Delete
CONFIG["POSTLINK"] = ":"
[139] Fix | Delete
CONFIG["WERRORFLAG"] = "-Werror"
[140] Fix | Delete
CONFIG["CHDIR"] = "cd -P"
[141] Fix | Delete
CONFIG["RMALL"] = "rm -fr"
[142] Fix | Delete
CONFIG["RMDIRS"] = "rmdir --ignore-fail-on-non-empty -p"
[143] Fix | Delete
CONFIG["RMDIR"] = "rmdir --ignore-fail-on-non-empty"
[144] Fix | Delete
CONFIG["CP"] = "cp"
[145] Fix | Delete
CONFIG["RM"] = "rm -f"
[146] Fix | Delete
CONFIG["PKG_CONFIG"] = ""
[147] Fix | Delete
CONFIG["DOXYGEN"] = ""
[148] Fix | Delete
CONFIG["DOT"] = ""
[149] Fix | Delete
CONFIG["MAKEDIRS"] = "/usr/bin/mkdir -p"
[150] Fix | Delete
CONFIG["MKDIR_P"] = "/usr/bin/mkdir -p"
[151] Fix | Delete
CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
[152] Fix | Delete
CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
[153] Fix | Delete
CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
[154] Fix | Delete
CONFIG["SET_MAKE"] = ""
[155] Fix | Delete
CONFIG["LN_S"] = "ln -s"
[156] Fix | Delete
CONFIG["DLLWRAP"] = ""
[157] Fix | Delete
CONFIG["WINDRES"] = ""
[158] Fix | Delete
CONFIG["ASFLAGS"] = ""
[159] Fix | Delete
CONFIG["ARFLAGS"] = "rcD "
[160] Fix | Delete
CONFIG["try_header"] = ""
[161] Fix | Delete
CONFIG["CC_VERSION_MESSAGE"] = "gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)\nCopyright (C) 2018 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
[162] Fix | Delete
CONFIG["CC_VERSION"] = "$(CC) --version"
[163] Fix | Delete
CONFIG["MJIT_CC"] = "/usr/bin/gcc"
[164] Fix | Delete
CONFIG["CSRCFLAG"] = ""
[165] Fix | Delete
CONFIG["COUTFLAG"] = "-o "
[166] Fix | Delete
CONFIG["OUTFLAG"] = "-o "
[167] Fix | Delete
CONFIG["CPPOUTFILE"] = "-o conftest.i"
[168] Fix | Delete
CONFIG["GNU_LD"] = "yes"
[169] Fix | Delete
CONFIG["GCC"] = "yes"
[170] Fix | Delete
CONFIG["EGREP"] = "/usr/bin/grep -E"
[171] Fix | Delete
CONFIG["GREP"] = "/usr/bin/grep"
[172] Fix | Delete
CONFIG["CPP"] = "$(CC) -E"
[173] Fix | Delete
CONFIG["CXXFLAGS"] = "-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection"
[174] Fix | Delete
CONFIG["OBJEXT"] = "o"
[175] Fix | Delete
CONFIG["CPPFLAGS"] = " $(DEFS) $(cppflags)"
[176] Fix | Delete
CONFIG["LDFLAGS"] = "-L. -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed"
[177] Fix | Delete
CONFIG["CFLAGS"] = "-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC"
[178] Fix | Delete
CONFIG["STRIP"] = "strip -S -x"
[179] Fix | Delete
CONFIG["RANLIB"] = "gcc-ranlib"
[180] Fix | Delete
CONFIG["OBJDUMP"] = "objdump"
[181] Fix | Delete
CONFIG["OBJCOPY"] = ":"
[182] Fix | Delete
CONFIG["NM"] = "gcc-nm"
[183] Fix | Delete
CONFIG["LD"] = "ld"
[184] Fix | Delete
CONFIG["CXX"] = "g++"
[185] Fix | Delete
CONFIG["AS"] = "as"
[186] Fix | Delete
CONFIG["AR"] = "gcc-ar"
[187] Fix | Delete
CONFIG["CC"] = "gcc"
[188] Fix | Delete
CONFIG["target_os"] = "linux"
[189] Fix | Delete
CONFIG["target_vendor"] = "redhat"
[190] Fix | Delete
CONFIG["target_cpu"] = "x86_64"
[191] Fix | Delete
CONFIG["target"] = "x86_64-redhat-linux-gnu"
[192] Fix | Delete
CONFIG["host_os"] = "linux"
[193] Fix | Delete
CONFIG["host_vendor"] = "redhat"
[194] Fix | Delete
CONFIG["host_cpu"] = "x86_64"
[195] Fix | Delete
CONFIG["host"] = "x86_64-redhat-linux-gnu"
[196] Fix | Delete
CONFIG["build_os"] = "linux-gnu"
[197] Fix | Delete
CONFIG["build_vendor"] = "redhat"
[198] Fix | Delete
CONFIG["build_cpu"] = "x86_64"
[199] Fix | Delete
CONFIG["build"] = "x86_64-redhat-linux-gnu"
[200] Fix | Delete
CONFIG["RUBY_VERSION_NAME"] = "$(RUBY_BASE_NAME)-$(ruby_version_dir_name)"
[201] Fix | Delete
CONFIG["RUBYW_BASE_NAME"] = "rubyw"
[202] Fix | Delete
CONFIG["RUBY_BASE_NAME"] = "ruby"
[203] Fix | Delete
CONFIG["RUBY_PROGRAM_VERSION"] = "$(MAJOR).$(MINOR).$(TEENY)"
[204] Fix | Delete
CONFIG["RUBY_API_VERSION"] = "$(MAJOR).$(MINOR)"
[205] Fix | Delete
CONFIG["HAVE_GIT"] = "yes"
[206] Fix | Delete
CONFIG["GIT"] = "git"
[207] Fix | Delete
CONFIG["cxxflags"] = ""
[208] Fix | Delete
CONFIG["cppflags"] = ""
[209] Fix | Delete
CONFIG["cflags"] = "$(optflags) $(debugflags) $(warnflags)"
[210] Fix | Delete
CONFIG["target_alias"] = ""
[211] Fix | Delete
CONFIG["host_alias"] = ""
[212] Fix | Delete
CONFIG["build_alias"] = "x86_64-redhat-linux-gnu"
[213] Fix | Delete
CONFIG["LIBS"] = "-lm "
[214] Fix | Delete
CONFIG["ECHO_T"] = ""
[215] Fix | Delete
CONFIG["ECHO_N"] = "-n"
[216] Fix | Delete
CONFIG["ECHO_C"] = ""
[217] Fix | Delete
CONFIG["DEFS"] = ""
[218] Fix | Delete
CONFIG["mandir"] = "$(DESTDIR)/opt/alt/ruby30/share/man"
[219] Fix | Delete
CONFIG["localedir"] = "$(datarootdir)/locale"
[220] Fix | Delete
CONFIG["libdir"] = "$(exec_prefix)/lib64"
[221] Fix | Delete
CONFIG["psdir"] = "$(docdir)"
[222] Fix | Delete
CONFIG["pdfdir"] = "$(docdir)"
[223] Fix | Delete
CONFIG["dvidir"] = "$(docdir)"
[224] Fix | Delete
CONFIG["htmldir"] = "$(docdir)"
[225] Fix | Delete
CONFIG["infodir"] = "$(DESTDIR)/opt/alt/ruby30/share/info"
[226] Fix | Delete
CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
[227] Fix | Delete
CONFIG["oldincludedir"] = "/usr/include"
[228] Fix | Delete
CONFIG["includedir"] = "$(DESTDIR)/opt/alt/ruby30/include"
[229] Fix | Delete
CONFIG["localstatedir"] = "$(DESTDIR)/var"
[230] Fix | Delete
CONFIG["sharedstatedir"] = "$(DESTDIR)/var/lib"
[231] Fix | Delete
CONFIG["sysconfdir"] = "$(DESTDIR)/etc"
[232] Fix | Delete
CONFIG["datadir"] = "$(DESTDIR)/opt/alt/ruby30/share"
[233] Fix | Delete
CONFIG["datarootdir"] = "$(prefix)/share"
[234] Fix | Delete
CONFIG["libexecdir"] = "$(DESTDIR)/opt/alt/ruby30/libexec"
[235] Fix | Delete
CONFIG["sbindir"] = "$(DESTDIR)/opt/alt/ruby30/sbin"
[236] Fix | Delete
CONFIG["bindir"] = "$(exec_prefix)/bin"
[237] Fix | Delete
CONFIG["exec_prefix"] = "$(DESTDIR)/opt/alt/ruby30"
[238] Fix | Delete
CONFIG["PACKAGE_URL"] = ""
[239] Fix | Delete
CONFIG["PACKAGE_BUGREPORT"] = ""
[240] Fix | Delete
CONFIG["PACKAGE_STRING"] = ""
[241] Fix | Delete
CONFIG["PACKAGE_VERSION"] = ""
[242] Fix | Delete
CONFIG["PACKAGE_TARNAME"] = ""
[243] Fix | Delete
CONFIG["PACKAGE_NAME"] = ""
[244] Fix | Delete
CONFIG["PATH_SEPARATOR"] = ":"
[245] Fix | Delete
CONFIG["SHELL"] = "/bin/sh"
[246] Fix | Delete
CONFIG["UNICODE_VERSION"] = "12.1.0"
[247] Fix | Delete
CONFIG["UNICODE_EMOJI_VERSION"] = "12.1"
[248] Fix | Delete
CONFIG["archdir"] = "$(rubyarchdir)"
[249] Fix | Delete
CONFIG["topdir"] = File.dirname(__FILE__)
[250] Fix | Delete
# Almost same with CONFIG. MAKEFILE_CONFIG has other variable
[251] Fix | Delete
# reference like below.
[252] Fix | Delete
#
[253] Fix | Delete
# MAKEFILE_CONFIG["bindir"] = "$(exec_prefix)/bin"
[254] Fix | Delete
#
[255] Fix | Delete
# The values of this constant is used for creating Makefile.
[256] Fix | Delete
#
[257] Fix | Delete
# require 'rbconfig'
[258] Fix | Delete
#
[259] Fix | Delete
# print <<-END_OF_MAKEFILE
[260] Fix | Delete
# prefix = #{RbConfig::MAKEFILE_CONFIG['prefix']}
[261] Fix | Delete
# exec_prefix = #{RbConfig::MAKEFILE_CONFIG['exec_prefix']}
[262] Fix | Delete
# bindir = #{RbConfig::MAKEFILE_CONFIG['bindir']}
[263] Fix | Delete
# END_OF_MAKEFILE
[264] Fix | Delete
#
[265] Fix | Delete
# => prefix = /usr/local
[266] Fix | Delete
# exec_prefix = $(prefix)
[267] Fix | Delete
# bindir = $(exec_prefix)/bin MAKEFILE_CONFIG = {}
[268] Fix | Delete
#
[269] Fix | Delete
# RbConfig.expand is used for resolving references like above in rbconfig.
[270] Fix | Delete
#
[271] Fix | Delete
# require 'rbconfig'
[272] Fix | Delete
# p RbConfig.expand(RbConfig::MAKEFILE_CONFIG["bindir"])
[273] Fix | Delete
# # => "/usr/local/bin"
[274] Fix | Delete
MAKEFILE_CONFIG = {}
[275] Fix | Delete
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
[276] Fix | Delete
[277] Fix | Delete
# call-seq:
[278] Fix | Delete
#
[279] Fix | Delete
# RbConfig.expand(val) -> string
[280] Fix | Delete
# RbConfig.expand(val, config) -> string
[281] Fix | Delete
#
[282] Fix | Delete
# expands variable with given +val+ value.
[283] Fix | Delete
#
[284] Fix | Delete
# RbConfig.expand("$(bindir)") # => /home/foobar/all-ruby/ruby19x/bin
[285] Fix | Delete
def RbConfig::expand(val, config = CONFIG)
[286] Fix | Delete
newval = val.gsub(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) {
[287] Fix | Delete
var = $&
[288] Fix | Delete
if !(v = $1 || $2)
[289] Fix | Delete
'$'
[290] Fix | Delete
elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
[291] Fix | Delete
pat, sub = $1, $2
[292] Fix | Delete
config[v] = false
[293] Fix | Delete
config[v] = RbConfig::expand(key, config)
[294] Fix | Delete
key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
[295] Fix | Delete
key
[296] Fix | Delete
else
[297] Fix | Delete
var
[298] Fix | Delete
end
[299] Fix | Delete
}
[300] Fix | Delete
val.replace(newval) unless newval == val
[301] Fix | Delete
val
[302] Fix | Delete
end
[303] Fix | Delete
CONFIG.each_value do |val|
[304] Fix | Delete
RbConfig::expand(val)
[305] Fix | Delete
end
[306] Fix | Delete
[307] Fix | Delete
# :nodoc:
[308] Fix | Delete
# call-seq:
[309] Fix | Delete
#
[310] Fix | Delete
# RbConfig.fire_update!(key, val) -> array
[311] Fix | Delete
# RbConfig.fire_update!(key, val, mkconf, conf) -> array
[312] Fix | Delete
#
[313] Fix | Delete
# updates +key+ in +mkconf+ with +val+, and all values depending on
[314] Fix | Delete
# the +key+ in +mkconf+.
[315] Fix | Delete
#
[316] Fix | Delete
# RbConfig::MAKEFILE_CONFIG.values_at("CC", "LDSHARED") # => ["gcc", "$(CC) -shared"]
[317] Fix | Delete
# RbConfig::CONFIG.values_at("CC", "LDSHARED") # => ["gcc", "gcc -shared"]
[318] Fix | Delete
# RbConfig.fire_update!("CC", "gcc-8") # => ["CC", "LDSHARED"]
[319] Fix | Delete
# RbConfig::MAKEFILE_CONFIG.values_at("CC", "LDSHARED") # => ["gcc-8", "$(CC) -shared"]
[320] Fix | Delete
# RbConfig::CONFIG.values_at("CC", "LDSHARED") # => ["gcc-8", "gcc-8 -shared"]
[321] Fix | Delete
#
[322] Fix | Delete
# returns updated keys list, or +nil+ if nothing changed.
[323] Fix | Delete
def RbConfig.fire_update!(key, val, mkconf = MAKEFILE_CONFIG, conf = CONFIG)
[324] Fix | Delete
return if mkconf[key] == val
[325] Fix | Delete
mkconf[key] = val
[326] Fix | Delete
keys = [key]
[327] Fix | Delete
deps = []
[328] Fix | Delete
begin
[329] Fix | Delete
re = Regexp.new("\\$\\((?:%1$s)\\)|\\$\\{(?:%1$s)\\}" % keys.join('|'))
[330] Fix | Delete
deps |= keys
[331] Fix | Delete
keys.clear
[332] Fix | Delete
mkconf.each {|k,v| keys << k if re =~ v}
[333] Fix | Delete
end until keys.empty?
[334] Fix | Delete
deps.each {|k| conf[k] = mkconf[k].dup}
[335] Fix | Delete
deps.each {|k| expand(conf[k])}
[336] Fix | Delete
deps
[337] Fix | Delete
end
[338] Fix | Delete
[339] Fix | Delete
# call-seq:
[340] Fix | Delete
#
[341] Fix | Delete
# RbConfig.ruby -> path
[342] Fix | Delete
#
[343] Fix | Delete
# returns the absolute pathname of the ruby command.
[344] Fix | Delete
def RbConfig.ruby
[345] Fix | Delete
File.join(
[346] Fix | Delete
RbConfig::CONFIG["bindir"],
[347] Fix | Delete
RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]
[348] Fix | Delete
)
[349] Fix | Delete
end
[350] Fix | Delete
end
[351] Fix | Delete
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
[352] Fix | Delete
[353] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function