Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../opt/alt/ruby27/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?("2.7.") or
[11] Fix | Delete
raise "ruby lib version (2.7.8) 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"] = "2"
[21] Fix | Delete
CONFIG["MINOR"] = "7"
[22] Fix | Delete
CONFIG["TEENY"] = "8"
[23] Fix | Delete
CONFIG["PATCHLEVEL"] = "225"
[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/ruby27")
[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"] = "$(sitearchincludedir)/$(RUBY_VERSION_NAME)/vendor_ruby"
[37] Fix | Delete
CONFIG["sitearchhdrdir"] = "$(sitearchincludedir)/$(RUBY_VERSION_NAME)/site_ruby"
[38] Fix | Delete
CONFIG["rubyarchhdrdir"] = "$(DESTDIR)/opt/alt/ruby27/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/ruby27/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/ruby27' '--exec-prefix=/opt/alt/ruby27' '--bindir=/opt/alt/ruby27/bin' '--sbindir=/opt/alt/ruby27/sbin' '--sysconfdir=/etc' '--datadir=/opt/alt/ruby27/share' '--includedir=/opt/alt/ruby27/include' '--libdir=/opt/alt/ruby27/lib64' '--libexecdir=/opt/alt/ruby27/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/opt/alt/ruby27/share/man' '--infodir=/opt/alt/ruby27/share/info' '--with-rubylibprefix=/opt/alt/ruby27/share/ruby' '--with-archlibdir=/opt/alt/ruby27/lib64' '--with-rubyarchprefix=/opt/alt/ruby27/lib64/ruby' '--with-sitedir=/opt/alt/ruby27/share/ruby/site_ruby' '--with-sitearchdir=/opt/alt/ruby27/lib64/ruby/site_ruby' '--with-vendordir=/opt/alt/ruby27/share/ruby/vendor_ruby' '--with-vendorarchdir=/opt/alt/ruby27/lib64/ruby/vendor_ruby' '--with-rubyhdrdir=/opt/alt/ruby27/include' '--with-rubyarchhdrdir=/opt/alt/ruby27/include' '--with-rubygemsdir=/opt/alt/ruby27/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= -L/opt/alt/ruby27/lib64 -Wl,-rpath=/opt/alt/ruby27/lib64' '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/ruby27/share/rubygems"
[48] Fix | Delete
CONFIG["vendorarchdir"] = "$(DESTDIR)/opt/alt/ruby27/lib64/ruby/vendor_ruby"
[49] Fix | Delete
CONFIG["vendorlibdir"] = "$(vendordir)"
[50] Fix | Delete
CONFIG["vendordir"] = "$(DESTDIR)/opt/alt/ruby27/share/ruby/vendor_ruby"
[51] Fix | Delete
CONFIG["sitearchdir"] = "$(DESTDIR)/opt/alt/ruby27/lib64/ruby/site_ruby"
[52] Fix | Delete
CONFIG["sitelibdir"] = "$(sitedir)"
[53] Fix | Delete
CONFIG["sitedir"] = "$(DESTDIR)/opt/alt/ruby27/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"] = "2.7.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/ruby27/lib64"
[64] Fix | Delete
CONFIG["libdirname"] = "archlibdir"
[65] Fix | Delete
CONFIG["RUBY_EXEC_PREFIX"] = "/opt/alt/ruby27"
[66] Fix | Delete
CONFIG["RUBY_LIB_VERSION"] = "2.7.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/ruby27/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"] = "-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["STRIP"] = "strip -S -x"
[118] Fix | Delete
CONFIG["SOEXT"] = "so"
[119] Fix | Delete
CONFIG["TRY_LINK"] = ""
[120] Fix | Delete
CONFIG["PRELOADENV"] = "LD_PRELOAD"
[121] Fix | Delete
CONFIG["LIBPATHENV"] = "LD_LIBRARY_PATH"
[122] Fix | Delete
CONFIG["RPATHFLAG"] = " -Wl,-rpath,%1$-s"
[123] Fix | Delete
CONFIG["LIBPATHFLAG"] = " -L%1$-s"
[124] Fix | Delete
CONFIG["LINK_SO"] = ""
[125] Fix | Delete
CONFIG["ADDITIONAL_DLDFLAGS"] = ""
[126] Fix | Delete
CONFIG["ASMEXT"] = "S"
[127] Fix | Delete
CONFIG["LIBEXT"] = "a"
[128] Fix | Delete
CONFIG["DLEXT2"] = ""
[129] Fix | Delete
CONFIG["DLEXT"] = "so"
[130] Fix | Delete
CONFIG["LDSHAREDXX"] = "$(CXX) -shared"
[131] Fix | Delete
CONFIG["LDSHARED"] = "$(CC) -shared"
[132] Fix | Delete
CONFIG["CCDLFLAGS"] = "-fPIC"
[133] Fix | Delete
CONFIG["STATIC"] = ""
[134] Fix | Delete
CONFIG["ARCH_FLAG"] = "-m64"
[135] Fix | Delete
CONFIG["DLDFLAGS"] = " -L/opt/alt/ruby27/lib64 -Wl,-rpath=/opt/alt/ruby27/lib64"
[136] Fix | Delete
CONFIG["ALLOCA"] = ""
[137] Fix | Delete
CONFIG["MATHN"] = "yes"
[138] Fix | Delete
CONFIG["dsymutil"] = ""
[139] Fix | Delete
CONFIG["codesign"] = ""
[140] Fix | Delete
CONFIG["POSTLINK"] = ":"
[141] Fix | Delete
CONFIG["WERRORFLAG"] = "-Werror"
[142] Fix | Delete
CONFIG["CHDIR"] = "cd -P"
[143] Fix | Delete
CONFIG["RMALL"] = "rm -fr"
[144] Fix | Delete
CONFIG["RMDIRS"] = "rmdir --ignore-fail-on-non-empty -p"
[145] Fix | Delete
CONFIG["RMDIR"] = "rmdir --ignore-fail-on-non-empty"
[146] Fix | Delete
CONFIG["CP"] = "cp"
[147] Fix | Delete
CONFIG["RM"] = "rm -f"
[148] Fix | Delete
CONFIG["PKG_CONFIG"] = ""
[149] Fix | Delete
CONFIG["DOXYGEN"] = ""
[150] Fix | Delete
CONFIG["DOT"] = ""
[151] Fix | Delete
CONFIG["MAKEDIRS"] = "/usr/bin/mkdir -p"
[152] Fix | Delete
CONFIG["MKDIR_P"] = "/usr/bin/mkdir -p"
[153] Fix | Delete
CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
[154] Fix | Delete
CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
[155] Fix | Delete
CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
[156] Fix | Delete
CONFIG["SET_MAKE"] = ""
[157] Fix | Delete
CONFIG["LN_S"] = "ln -s"
[158] Fix | Delete
CONFIG["NM"] = "nm"
[159] Fix | Delete
CONFIG["DLLWRAP"] = ""
[160] Fix | Delete
CONFIG["WINDRES"] = ""
[161] Fix | Delete
CONFIG["OBJCOPY"] = ":"
[162] Fix | Delete
CONFIG["OBJDUMP"] = "objdump"
[163] Fix | Delete
CONFIG["ASFLAGS"] = ""
[164] Fix | Delete
CONFIG["AS"] = "as"
[165] Fix | Delete
CONFIG["ARFLAGS"] = "rcD "
[166] Fix | Delete
CONFIG["AR"] = "ar"
[167] Fix | Delete
CONFIG["RANLIB"] = "ranlib"
[168] Fix | Delete
CONFIG["try_header"] = ""
[169] Fix | Delete
CONFIG["CC_VERSION_MESSAGE"] = "gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-18)\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."
[170] Fix | Delete
CONFIG["CC_VERSION"] = "$(CC) --version"
[171] Fix | Delete
CONFIG["MJIT_CC"] = "/usr/bin/gcc"
[172] Fix | Delete
CONFIG["CSRCFLAG"] = ""
[173] Fix | Delete
CONFIG["COUTFLAG"] = "-o "
[174] Fix | Delete
CONFIG["OUTFLAG"] = "-o "
[175] Fix | Delete
CONFIG["CPPOUTFILE"] = "-o conftest.i"
[176] Fix | Delete
CONFIG["GNU_LD"] = "yes"
[177] Fix | Delete
CONFIG["LD"] = "ld"
[178] Fix | Delete
CONFIG["GCC"] = "yes"
[179] 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"
[180] Fix | Delete
CONFIG["CXX"] = "g++"
[181] Fix | Delete
CONFIG["EGREP"] = "/usr/bin/grep -E"
[182] Fix | Delete
CONFIG["GREP"] = "/usr/bin/grep"
[183] Fix | Delete
CONFIG["CPP"] = "$(CC) -E"
[184] Fix | Delete
CONFIG["OBJEXT"] = "o"
[185] Fix | Delete
CONFIG["CPPFLAGS"] = " $(DEFS) $(cppflags)"
[186] Fix | Delete
CONFIG["LDFLAGS"] = "-L. -L/opt/alt/ruby27/lib64 -Wl,-rpath=/opt/alt/ruby27/lib64 -fstack-protector-strong -rdynamic -Wl,-export-dynamic"
[187] 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"
[188] Fix | Delete
CONFIG["CC"] = "gcc"
[189] Fix | Delete
CONFIG["target_os"] = "linux"
[190] Fix | Delete
CONFIG["target_vendor"] = "redhat"
[191] Fix | Delete
CONFIG["target_cpu"] = "x86_64"
[192] Fix | Delete
CONFIG["target"] = "x86_64-redhat-linux-gnu"
[193] Fix | Delete
CONFIG["host_os"] = "linux"
[194] Fix | Delete
CONFIG["host_vendor"] = "redhat"
[195] Fix | Delete
CONFIG["host_cpu"] = "x86_64"
[196] Fix | Delete
CONFIG["host"] = "x86_64-redhat-linux-gnu"
[197] Fix | Delete
CONFIG["RUBY_VERSION_NAME"] = "$(RUBY_BASE_NAME)-$(ruby_version_dir_name)"
[198] Fix | Delete
CONFIG["RUBYW_BASE_NAME"] = "rubyw"
[199] Fix | Delete
CONFIG["RUBY_BASE_NAME"] = "ruby"
[200] Fix | Delete
CONFIG["build_os"] = "linux-gnu"
[201] Fix | Delete
CONFIG["build_vendor"] = "redhat"
[202] Fix | Delete
CONFIG["build_cpu"] = "x86_64"
[203] Fix | Delete
CONFIG["build"] = "x86_64-redhat-linux-gnu"
[204] Fix | Delete
CONFIG["RUBY_PROGRAM_VERSION"] = "$(MAJOR).$(MINOR).$(TEENY)"
[205] Fix | Delete
CONFIG["RUBY_API_VERSION"] = "$(MAJOR).$(MINOR)"
[206] Fix | Delete
CONFIG["HAVE_GIT"] = "yes"
[207] Fix | Delete
CONFIG["GIT"] = "git"
[208] Fix | Delete
CONFIG["cxxflags"] = ""
[209] Fix | Delete
CONFIG["cppflags"] = ""
[210] Fix | Delete
CONFIG["cflags"] = "$(optflags) $(debugflags) $(warnflags)"
[211] Fix | Delete
CONFIG["target_alias"] = ""
[212] Fix | Delete
CONFIG["host_alias"] = ""
[213] Fix | Delete
CONFIG["build_alias"] = "x86_64-redhat-linux-gnu"
[214] Fix | Delete
CONFIG["LIBS"] = "-lm "
[215] Fix | Delete
CONFIG["ECHO_T"] = ""
[216] Fix | Delete
CONFIG["ECHO_N"] = "-n"
[217] Fix | Delete
CONFIG["ECHO_C"] = ""
[218] Fix | Delete
CONFIG["DEFS"] = ""
[219] Fix | Delete
CONFIG["mandir"] = "$(DESTDIR)/opt/alt/ruby27/share/man"
[220] Fix | Delete
CONFIG["localedir"] = "$(datarootdir)/locale"
[221] Fix | Delete
CONFIG["libdir"] = "$(exec_prefix)/lib64"
[222] Fix | Delete
CONFIG["psdir"] = "$(docdir)"
[223] Fix | Delete
CONFIG["pdfdir"] = "$(docdir)"
[224] Fix | Delete
CONFIG["dvidir"] = "$(docdir)"
[225] Fix | Delete
CONFIG["htmldir"] = "$(docdir)"
[226] Fix | Delete
CONFIG["infodir"] = "$(DESTDIR)/opt/alt/ruby27/share/info"
[227] Fix | Delete
CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
[228] Fix | Delete
CONFIG["oldincludedir"] = "/usr/include"
[229] Fix | Delete
CONFIG["includedir"] = "$(DESTDIR)/opt/alt/ruby27/include"
[230] Fix | Delete
CONFIG["localstatedir"] = "$(DESTDIR)/var"
[231] Fix | Delete
CONFIG["sharedstatedir"] = "$(DESTDIR)/var/lib"
[232] Fix | Delete
CONFIG["sysconfdir"] = "$(DESTDIR)/etc"
[233] Fix | Delete
CONFIG["datadir"] = "$(DESTDIR)/opt/alt/ruby27/share"
[234] Fix | Delete
CONFIG["datarootdir"] = "$(prefix)/share"
[235] Fix | Delete
CONFIG["libexecdir"] = "$(DESTDIR)/opt/alt/ruby27/libexec"
[236] Fix | Delete
CONFIG["sbindir"] = "$(DESTDIR)/opt/alt/ruby27/sbin"
[237] Fix | Delete
CONFIG["bindir"] = "$(exec_prefix)/bin"
[238] Fix | Delete
CONFIG["exec_prefix"] = "$(DESTDIR)/opt/alt/ruby27"
[239] Fix | Delete
CONFIG["PACKAGE_URL"] = ""
[240] Fix | Delete
CONFIG["PACKAGE_BUGREPORT"] = ""
[241] Fix | Delete
CONFIG["PACKAGE_STRING"] = ""
[242] Fix | Delete
CONFIG["PACKAGE_VERSION"] = ""
[243] Fix | Delete
CONFIG["PACKAGE_TARNAME"] = ""
[244] Fix | Delete
CONFIG["PACKAGE_NAME"] = ""
[245] Fix | Delete
CONFIG["PATH_SEPARATOR"] = ":"
[246] Fix | Delete
CONFIG["SHELL"] = "/bin/sh"
[247] Fix | Delete
CONFIG["UNICODE_VERSION"] = "12.1.0"
[248] Fix | Delete
CONFIG["UNICODE_EMOJI_VERSION"] = "12.1"
[249] Fix | Delete
CONFIG["archdir"] = "$(rubyarchdir)"
[250] Fix | Delete
CONFIG["topdir"] = File.dirname(__FILE__)
[251] Fix | Delete
# Almost same with CONFIG. MAKEFILE_CONFIG has other variable
[252] Fix | Delete
# reference like below.
[253] Fix | Delete
#
[254] Fix | Delete
# MAKEFILE_CONFIG["bindir"] = "$(exec_prefix)/bin"
[255] Fix | Delete
#
[256] Fix | Delete
# The values of this constant is used for creating Makefile.
[257] Fix | Delete
#
[258] Fix | Delete
# require 'rbconfig'
[259] Fix | Delete
#
[260] Fix | Delete
# print <<-END_OF_MAKEFILE
[261] Fix | Delete
# prefix = #{Config::MAKEFILE_CONFIG['prefix']}
[262] Fix | Delete
# exec_prefix = #{Config::MAKEFILE_CONFIG['exec_prefix']}
[263] Fix | Delete
# bindir = #{Config::MAKEFILE_CONFIG['bindir']}
[264] Fix | Delete
# END_OF_MAKEFILE
[265] Fix | Delete
#
[266] Fix | Delete
# => prefix = /usr/local
[267] Fix | Delete
# exec_prefix = $(prefix)
[268] Fix | Delete
# bindir = $(exec_prefix)/bin MAKEFILE_CONFIG = {}
[269] Fix | Delete
#
[270] Fix | Delete
# RbConfig.expand is used for resolving references like above in rbconfig.
[271] Fix | Delete
#
[272] Fix | Delete
# require 'rbconfig'
[273] Fix | Delete
# p Config.expand(Config::MAKEFILE_CONFIG["bindir"])
[274] Fix | Delete
# # => "/usr/local/bin"
[275] Fix | Delete
MAKEFILE_CONFIG = {}
[276] Fix | Delete
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
[277] Fix | Delete
[278] Fix | Delete
# call-seq:
[279] Fix | Delete
#
[280] Fix | Delete
# RbConfig.expand(val) -> string
[281] Fix | Delete
# RbConfig.expand(val, config) -> string
[282] Fix | Delete
#
[283] Fix | Delete
# expands variable with given +val+ value.
[284] Fix | Delete
#
[285] Fix | Delete
# RbConfig.expand("$(bindir)") # => /home/foobar/all-ruby/ruby19x/bin
[286] Fix | Delete
def RbConfig::expand(val, config = CONFIG)
[287] Fix | Delete
newval = val.gsub(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) {
[288] Fix | Delete
var = $&
[289] Fix | Delete
if !(v = $1 || $2)
[290] Fix | Delete
'$'
[291] Fix | Delete
elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
[292] Fix | Delete
pat, sub = $1, $2
[293] Fix | Delete
config[v] = false
[294] Fix | Delete
config[v] = RbConfig::expand(key, config)
[295] Fix | Delete
key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
[296] Fix | Delete
key
[297] Fix | Delete
else
[298] Fix | Delete
var
[299] Fix | Delete
end
[300] Fix | Delete
}
[301] Fix | Delete
val.replace(newval) unless newval == val
[302] Fix | Delete
val
[303] Fix | Delete
end
[304] Fix | Delete
CONFIG.each_value do |val|
[305] Fix | Delete
RbConfig::expand(val)
[306] Fix | Delete
end
[307] Fix | Delete
[308] Fix | Delete
# :nodoc:
[309] Fix | Delete
# call-seq:
[310] Fix | Delete
#
[311] Fix | Delete
# RbConfig.fire_update!(key, val) -> string
[312] Fix | Delete
# RbConfig.fire_update!(key, val, mkconf, conf) -> string
[313] Fix | Delete
#
[314] Fix | Delete
# updates +key+ in +mkconf+ with +val+, and all values depending on
[315] Fix | Delete
# the +key+ in +mkconf+.
[316] Fix | Delete
#
[317] Fix | Delete
# RbConfig::MAKEFILE_CONFIG.values_at("CC", "LDSHARED") # => ["gcc", "$(CC) -shared"]
[318] Fix | Delete
# RbConfig::CONFIG.values_at("CC", "LDSHARED") # => ["gcc", "gcc -shared"]
[319] Fix | Delete
# RbConfig.fire_update!("CC", "gcc-8") # => ["CC", "LDSHARED"]
[320] Fix | Delete
# RbConfig::MAKEFILE_CONFIG.values_at("CC", "LDSHARED") # => ["gcc-8", "$(CC) -shared"]
[321] Fix | Delete
# RbConfig::CONFIG.values_at("CC", "LDSHARED") # => ["gcc-8", "gcc-8 -shared"]
[322] Fix | Delete
#
[323] Fix | Delete
# returns updated keys list, or +nil+ if nothing changed.
[324] Fix | Delete
def RbConfig.fire_update!(key, val, mkconf = MAKEFILE_CONFIG, conf = CONFIG)
[325] Fix | Delete
return if mkconf[key] == val
[326] Fix | Delete
mkconf[key] = val
[327] Fix | Delete
keys = [key]
[328] Fix | Delete
deps = []
[329] Fix | Delete
begin
[330] Fix | Delete
re = Regexp.new("\\$\\((?:%1$s)\\)|\\$\\{(?:%1$s)\\}" % keys.join('|'))
[331] Fix | Delete
deps |= keys
[332] Fix | Delete
keys.clear
[333] Fix | Delete
mkconf.each {|k,v| keys << k if re =~ v}
[334] Fix | Delete
end until keys.empty?
[335] Fix | Delete
deps.each {|k| conf[k] = mkconf[k].dup}
[336] Fix | Delete
deps.each {|k| expand(conf[k])}
[337] Fix | Delete
deps
[338] Fix | Delete
end
[339] Fix | Delete
[340] Fix | Delete
# call-seq:
[341] Fix | Delete
#
[342] Fix | Delete
# RbConfig.ruby -> path
[343] Fix | Delete
#
[344] Fix | Delete
# returns the absolute pathname of the ruby command.
[345] Fix | Delete
def RbConfig.ruby
[346] Fix | Delete
File.join(
[347] Fix | Delete
RbConfig::CONFIG["bindir"],
[348] Fix | Delete
RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]
[349] Fix | Delete
)
[350] Fix | Delete
end
[351] Fix | Delete
end
[352] Fix | Delete
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
[353] Fix | Delete
[354] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function