Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/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.5.") or
[11] Fix | Delete
raise "ruby lib version (2.5.9) 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"] = "5"
[22] Fix | Delete
CONFIG["TEENY"] = "9"
[23] Fix | Delete
CONFIG["PATCHLEVEL"] = "229"
[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 + "/usr")
[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["PACKAGE"] = "ruby"
[33] Fix | Delete
CONFIG["BUILTIN_TRANSSRCS"] = " enc/trans/newline.c"
[34] Fix | Delete
CONFIG["USE_RUBYGEMS"] = "YES"
[35] Fix | Delete
CONFIG["MANTYPE"] = "doc"
[36] Fix | Delete
CONFIG["OPTIONAL_PRELUDES"] = "./abrt_prelude.rb"
[37] Fix | Delete
CONFIG["vendorarchhdrdir"] = "$(vendorhdrdir)/$(arch)"
[38] Fix | Delete
CONFIG["sitearchhdrdir"] = "$(sitehdrdir)/$(arch)"
[39] Fix | Delete
CONFIG["rubyarchhdrdir"] = "$(DESTDIR)/usr/include"
[40] Fix | Delete
CONFIG["vendorhdrdir"] = "$(rubyhdrdir)/vendor_ruby"
[41] Fix | Delete
CONFIG["sitehdrdir"] = "$(rubyhdrdir)/site_ruby"
[42] Fix | Delete
CONFIG["rubyhdrdir"] = "$(DESTDIR)/usr/include"
[43] Fix | Delete
CONFIG["RUBY_SEARCH_PATH"] = ""
[44] Fix | Delete
CONFIG["UNIVERSAL_INTS"] = ""
[45] Fix | Delete
CONFIG["UNIVERSAL_ARCHNAMES"] = ""
[46] Fix | Delete
CONFIG["configure_args"] = " '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-rubylibprefix=/usr/share/ruby' '--with-archlibdir=/usr/lib64' '--with-rubyarchprefix=/usr/lib64/ruby' '--with-sitedir=/usr/local/share/ruby/site_ruby' '--with-sitearchdir=/usr/local/lib64/ruby/site_ruby' '--with-vendordir=/usr/share/ruby/vendor_ruby' '--with-vendorarchdir=/usr/lib64/ruby/vendor_ruby' '--with-rubyhdrdir=/usr/include' '--with-rubyarchhdrdir=/usr/include' '--with-sitearchhdrdir=$$(sitehdrdir)/$$(arch)' '--with-vendorarchhdrdir=$$(vendorhdrdir)/$$(arch)' '--with-rubygemsdir=/usr/share/rubygems' '--with-ruby-pc=ruby.pc' '--with-compress-debug-sections=no' '--disable-rpath' '--enable-shared' '--with-ruby-version=' '--enable-multiarch' '--with-prelude=./abrt_prelude.rb' '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'"
[47] Fix | Delete
CONFIG["CONFIGURE"] = "configure"
[48] Fix | Delete
CONFIG["rubygemsdir"] = "$(DESTDIR)/usr/share/rubygems"
[49] Fix | Delete
CONFIG["vendorarchdir"] = "$(DESTDIR)/usr/lib64/ruby/vendor_ruby"
[50] Fix | Delete
CONFIG["vendorlibdir"] = "$(vendordir)"
[51] Fix | Delete
CONFIG["vendordir"] = "$(DESTDIR)/usr/share/ruby/vendor_ruby"
[52] Fix | Delete
CONFIG["sitearchdir"] = "$(DESTDIR)/usr/local/lib64/ruby/site_ruby"
[53] Fix | Delete
CONFIG["sitelibdir"] = "$(sitedir)"
[54] Fix | Delete
CONFIG["sitedir"] = "$(DESTDIR)/usr/local/share/ruby/site_ruby"
[55] Fix | Delete
CONFIG["rubyarchdir"] = "$(rubyarchprefix)"
[56] Fix | Delete
CONFIG["rubylibdir"] = "$(rubylibprefix)"
[57] Fix | Delete
CONFIG["ruby_version_dir_name"] = ""
[58] Fix | Delete
CONFIG["ruby_version"] = "2.5.0"
[59] Fix | Delete
CONFIG["sitearch"] = "$(arch)"
[60] Fix | Delete
CONFIG["arch"] = "x86_64-linux"
[61] Fix | Delete
CONFIG["sitearchincludedir"] = "$(includedir)/$(sitearch)"
[62] Fix | Delete
CONFIG["archincludedir"] = "$(includedir)/$(arch)"
[63] Fix | Delete
CONFIG["sitearchlibdir"] = "$(libdir)/$(sitearch)"
[64] Fix | Delete
CONFIG["archlibdir"] = "$(DESTDIR)/usr/lib64"
[65] Fix | Delete
CONFIG["libdirname"] = "archlibdir"
[66] Fix | Delete
CONFIG["RUBY_EXEC_PREFIX"] = "/usr"
[67] Fix | Delete
CONFIG["RUBY_LIB_VERSION"] = "2.5.0"
[68] Fix | Delete
CONFIG["RUBY_LIB_VERSION_STYLE"] = "3\t/* full */"
[69] Fix | Delete
CONFIG["RI_BASE_NAME"] = "ri"
[70] Fix | Delete
CONFIG["ridir"] = "$(datarootdir)/$(RI_BASE_NAME)"
[71] Fix | Delete
CONFIG["rubysitearchprefix"] = "$(sitearchlibdir)/$(RUBY_BASE_NAME)"
[72] Fix | Delete
CONFIG["rubyarchprefix"] = "/usr/lib64/ruby"
[73] Fix | Delete
CONFIG["MAKEFILES"] = "Makefile GNUmakefile"
[74] Fix | Delete
CONFIG["PLATFORM_DIR"] = ""
[75] Fix | Delete
CONFIG["THREAD_MODEL"] = "pthread"
[76] Fix | Delete
CONFIG["SYMBOL_PREFIX"] = ""
[77] Fix | Delete
CONFIG["EXPORT_PREFIX"] = ""
[78] Fix | Delete
CONFIG["COMMON_HEADERS"] = ""
[79] Fix | Delete
CONFIG["COMMON_MACROS"] = ""
[80] Fix | Delete
CONFIG["COMMON_LIBS"] = ""
[81] Fix | Delete
CONFIG["MAINLIBS"] = "-lpthread -lgmp -ldl -lcrypt -lm "
[82] Fix | Delete
CONFIG["ENABLE_SHARED"] = "yes"
[83] Fix | Delete
CONFIG["DLDLIBS"] = " -lc"
[84] Fix | Delete
CONFIG["SOLIBS"] = "$(MAINLIBS)"
[85] Fix | Delete
CONFIG["LIBRUBYARG_SHARED"] = "-l$(RUBY_SO_NAME)"
[86] Fix | Delete
CONFIG["LIBRUBYARG_STATIC"] = "-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 -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict"
[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["EXECUTABLE_EXTS"] = ""
[106] Fix | Delete
CONFIG["ARCHFILE"] = ""
[107] Fix | Delete
CONFIG["LIBRUBY_RELATIVE"] = "no"
[108] Fix | Delete
CONFIG["EXTOUT"] = ".ext"
[109] Fix | Delete
CONFIG["PREP"] = "miniruby$(EXEEXT)"
[110] Fix | Delete
CONFIG["CROSS_COMPILING"] = "no"
[111] Fix | Delete
CONFIG["TEST_RUNNABLE"] = "yes"
[112] Fix | Delete
CONFIG["rubylibprefix"] = "$(exec_prefix)/share/ruby"
[113] Fix | Delete
CONFIG["setup"] = "Setup"
[114] Fix | Delete
CONFIG["ENCSTATIC"] = ""
[115] Fix | Delete
CONFIG["EXTSTATIC"] = ""
[116] Fix | Delete
CONFIG["STRIP"] = "strip -S -x"
[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"] = ""
[122] Fix | Delete
CONFIG["LIBPATHFLAG"] = " -L%s"
[123] Fix | Delete
CONFIG["LINK_SO"] = ""
[124] Fix | Delete
CONFIG["ASMEXT"] = "S"
[125] Fix | Delete
CONFIG["LIBEXT"] = "a"
[126] Fix | Delete
CONFIG["DLEXT2"] = ""
[127] Fix | Delete
CONFIG["DLEXT"] = "so"
[128] Fix | Delete
CONFIG["LDSHAREDXX"] = "$(CXX) -shared"
[129] Fix | Delete
CONFIG["LDSHARED"] = "$(CC) -shared"
[130] Fix | Delete
CONFIG["CCDLFLAGS"] = "-fPIC"
[131] Fix | Delete
CONFIG["STATIC"] = ""
[132] Fix | Delete
CONFIG["ARCH_FLAG"] = "-m64"
[133] Fix | Delete
CONFIG["DLDFLAGS"] = "-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -m64"
[134] Fix | Delete
CONFIG["ALLOCA"] = ""
[135] Fix | Delete
CONFIG["dsymutil"] = ""
[136] Fix | Delete
CONFIG["codesign"] = ""
[137] Fix | Delete
CONFIG["POSTLINK"] = ":"
[138] Fix | Delete
CONFIG["WERRORFLAG"] = "-Werror"
[139] Fix | Delete
CONFIG["CHDIR"] = "cd -P"
[140] Fix | Delete
CONFIG["RMALL"] = "rm -fr"
[141] Fix | Delete
CONFIG["RMDIRS"] = "rmdir --ignore-fail-on-non-empty -p"
[142] Fix | Delete
CONFIG["RMDIR"] = "rmdir --ignore-fail-on-non-empty"
[143] Fix | Delete
CONFIG["CP"] = "cp"
[144] Fix | Delete
CONFIG["RM"] = "rm -f"
[145] Fix | Delete
CONFIG["PKG_CONFIG"] = ""
[146] Fix | Delete
CONFIG["DOXYGEN"] = ""
[147] Fix | Delete
CONFIG["DOT"] = ""
[148] Fix | Delete
CONFIG["MAKEDIRS"] = "/usr/bin/mkdir -p"
[149] Fix | Delete
CONFIG["MKDIR_P"] = "/usr/bin/mkdir -p"
[150] Fix | Delete
CONFIG["INSTALL_DATA"] = "$(INSTALL) -m 644"
[151] Fix | Delete
CONFIG["INSTALL_SCRIPT"] = "$(INSTALL)"
[152] Fix | Delete
CONFIG["INSTALL_PROGRAM"] = "$(INSTALL)"
[153] Fix | Delete
CONFIG["SET_MAKE"] = ""
[154] Fix | Delete
CONFIG["LN_S"] = "ln -s"
[155] Fix | Delete
CONFIG["NM"] = "nm"
[156] Fix | Delete
CONFIG["DLLWRAP"] = ""
[157] Fix | Delete
CONFIG["WINDRES"] = ""
[158] Fix | Delete
CONFIG["OBJCOPY"] = ":"
[159] Fix | Delete
CONFIG["OBJDUMP"] = "objdump"
[160] Fix | Delete
CONFIG["ASFLAGS"] = ""
[161] Fix | Delete
CONFIG["AS"] = "as"
[162] Fix | Delete
CONFIG["ARFLAGS"] = "rcD "
[163] Fix | Delete
CONFIG["AR"] = "ar"
[164] Fix | Delete
CONFIG["RANLIB"] = "ranlib"
[165] Fix | Delete
CONFIG["try_header"] = ""
[166] 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."
[167] Fix | Delete
CONFIG["CC_VERSION"] = "$(CC) --version"
[168] Fix | Delete
CONFIG["CSRCFLAG"] = ""
[169] Fix | Delete
CONFIG["COUTFLAG"] = "-o "
[170] Fix | Delete
CONFIG["OUTFLAG"] = "-o "
[171] Fix | Delete
CONFIG["CPPOUTFILE"] = "-o conftest.i"
[172] Fix | Delete
CONFIG["GNU_LD"] = "yes"
[173] Fix | Delete
CONFIG["LD"] = "ld"
[174] Fix | Delete
CONFIG["GCC"] = "yes"
[175] Fix | Delete
CONFIG["EGREP"] = "/usr/bin/grep -E"
[176] Fix | Delete
CONFIG["GREP"] = "/usr/bin/grep"
[177] Fix | Delete
CONFIG["CPP"] = "$(CC) -E"
[178] 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"
[179] Fix | Delete
CONFIG["CXX"] = "g++"
[180] Fix | Delete
CONFIG["OBJEXT"] = "o"
[181] Fix | Delete
CONFIG["CPPFLAGS"] = " $(DEFS) $(cppflags)"
[182] 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"
[183] 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"
[184] Fix | Delete
CONFIG["CC"] = "gcc"
[185] Fix | Delete
CONFIG["target_os"] = "linux"
[186] Fix | Delete
CONFIG["target_vendor"] = "redhat"
[187] Fix | Delete
CONFIG["target_cpu"] = "x86_64"
[188] Fix | Delete
CONFIG["target"] = "x86_64-redhat-linux-gnu"
[189] Fix | Delete
CONFIG["host_os"] = "linux-gnu"
[190] Fix | Delete
CONFIG["host_vendor"] = "redhat"
[191] Fix | Delete
CONFIG["host_cpu"] = "x86_64"
[192] Fix | Delete
CONFIG["host"] = "x86_64-redhat-linux-gnu"
[193] Fix | Delete
CONFIG["RUBY_VERSION_NAME"] = "$(RUBY_BASE_NAME)-$(ruby_version_dir_name)"
[194] Fix | Delete
CONFIG["RUBYW_BASE_NAME"] = "rubyw"
[195] Fix | Delete
CONFIG["RUBY_BASE_NAME"] = "ruby"
[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_API_VERSION"] = "$(MAJOR).$(MINOR)"
[201] Fix | Delete
CONFIG["RUBY_PROGRAM_VERSION"] = "2.5.9"
[202] Fix | Delete
CONFIG["HAVE_GIT"] = "yes"
[203] Fix | Delete
CONFIG["GIT"] = "git"
[204] Fix | Delete
CONFIG["cxxflags"] = "$(optflags) $(debugflags) $(warnflags)"
[205] Fix | Delete
CONFIG["cppflags"] = ""
[206] Fix | Delete
CONFIG["cflags"] = "$(optflags) $(debugflags) $(warnflags)"
[207] Fix | Delete
CONFIG["target_alias"] = ""
[208] Fix | Delete
CONFIG["host_alias"] = "x86_64-redhat-linux-gnu"
[209] Fix | Delete
CONFIG["build_alias"] = "x86_64-redhat-linux-gnu"
[210] Fix | Delete
CONFIG["LIBS"] = ""
[211] Fix | Delete
CONFIG["ECHO_T"] = ""
[212] Fix | Delete
CONFIG["ECHO_N"] = "-n"
[213] Fix | Delete
CONFIG["ECHO_C"] = ""
[214] Fix | Delete
CONFIG["DEFS"] = ""
[215] Fix | Delete
CONFIG["mandir"] = "$(DESTDIR)/usr/share/man"
[216] Fix | Delete
CONFIG["localedir"] = "$(datarootdir)/locale"
[217] Fix | Delete
CONFIG["libdir"] = "$(exec_prefix)/lib64"
[218] Fix | Delete
CONFIG["psdir"] = "$(docdir)"
[219] Fix | Delete
CONFIG["pdfdir"] = "$(docdir)"
[220] Fix | Delete
CONFIG["dvidir"] = "$(docdir)"
[221] Fix | Delete
CONFIG["htmldir"] = "$(docdir)"
[222] Fix | Delete
CONFIG["infodir"] = "$(DESTDIR)/usr/share/info"
[223] Fix | Delete
CONFIG["docdir"] = "$(datarootdir)/doc/$(PACKAGE)"
[224] Fix | Delete
CONFIG["oldincludedir"] = "/usr/include"
[225] Fix | Delete
CONFIG["includedir"] = "$(DESTDIR)/usr/include"
[226] Fix | Delete
CONFIG["localstatedir"] = "$(DESTDIR)/var"
[227] Fix | Delete
CONFIG["sharedstatedir"] = "$(DESTDIR)/var/lib"
[228] Fix | Delete
CONFIG["sysconfdir"] = "$(DESTDIR)/etc"
[229] Fix | Delete
CONFIG["datadir"] = "$(DESTDIR)/usr/share"
[230] Fix | Delete
CONFIG["datarootdir"] = "$(prefix)/share"
[231] Fix | Delete
CONFIG["libexecdir"] = "$(DESTDIR)/usr/libexec"
[232] Fix | Delete
CONFIG["sbindir"] = "$(DESTDIR)/usr/sbin"
[233] Fix | Delete
CONFIG["bindir"] = "$(exec_prefix)/bin"
[234] Fix | Delete
CONFIG["exec_prefix"] = "$(DESTDIR)/usr"
[235] Fix | Delete
CONFIG["PACKAGE_URL"] = ""
[236] Fix | Delete
CONFIG["PACKAGE_BUGREPORT"] = ""
[237] Fix | Delete
CONFIG["PACKAGE_STRING"] = ""
[238] Fix | Delete
CONFIG["PACKAGE_VERSION"] = ""
[239] Fix | Delete
CONFIG["PACKAGE_TARNAME"] = ""
[240] Fix | Delete
CONFIG["PACKAGE_NAME"] = ""
[241] Fix | Delete
CONFIG["PATH_SEPARATOR"] = ":"
[242] Fix | Delete
CONFIG["SHELL"] = "/bin/sh"
[243] Fix | Delete
CONFIG["UNICODE_VERSION"] = "10.0.0"
[244] Fix | Delete
CONFIG["archdir"] = "$(rubyarchdir)"
[245] Fix | Delete
CONFIG["topdir"] = File.dirname(__FILE__)
[246] Fix | Delete
# Almost same with CONFIG. MAKEFILE_CONFIG has other variable
[247] Fix | Delete
# reference like below.
[248] Fix | Delete
#
[249] Fix | Delete
# MAKEFILE_CONFIG["bindir"] = "$(exec_prefix)/bin"
[250] Fix | Delete
#
[251] Fix | Delete
# The values of this constant is used for creating Makefile.
[252] Fix | Delete
#
[253] Fix | Delete
# require 'rbconfig'
[254] Fix | Delete
#
[255] Fix | Delete
# print <<-END_OF_MAKEFILE
[256] Fix | Delete
# prefix = #{Config::MAKEFILE_CONFIG['prefix']}
[257] Fix | Delete
# exec_prefix = #{Config::MAKEFILE_CONFIG['exec_prefix']}
[258] Fix | Delete
# bindir = #{Config::MAKEFILE_CONFIG['bindir']}
[259] Fix | Delete
# END_OF_MAKEFILE
[260] Fix | Delete
#
[261] Fix | Delete
# => prefix = /usr/local
[262] Fix | Delete
# exec_prefix = $(prefix)
[263] Fix | Delete
# bindir = $(exec_prefix)/bin MAKEFILE_CONFIG = {}
[264] Fix | Delete
#
[265] Fix | Delete
# RbConfig.expand is used for resolving references like above in rbconfig.
[266] Fix | Delete
#
[267] Fix | Delete
# require 'rbconfig'
[268] Fix | Delete
# p Config.expand(Config::MAKEFILE_CONFIG["bindir"])
[269] Fix | Delete
# # => "/usr/local/bin"
[270] Fix | Delete
MAKEFILE_CONFIG = {}
[271] Fix | Delete
CONFIG.each{|k,v| MAKEFILE_CONFIG[k] = v.dup}
[272] Fix | Delete
[273] Fix | Delete
# call-seq:
[274] Fix | Delete
#
[275] Fix | Delete
# RbConfig.expand(val) -> string
[276] Fix | Delete
# RbConfig.expand(val, config) -> string
[277] Fix | Delete
#
[278] Fix | Delete
# expands variable with given +val+ value.
[279] Fix | Delete
#
[280] Fix | Delete
# RbConfig.expand("$(bindir)") # => /home/foobar/all-ruby/ruby19x/bin
[281] Fix | Delete
def RbConfig::expand(val, config = CONFIG)
[282] Fix | Delete
newval = val.gsub(/\$\$|\$\(([^()]+)\)|\$\{([^{}]+)\}/) {
[283] Fix | Delete
var = $&
[284] Fix | Delete
if !(v = $1 || $2)
[285] Fix | Delete
'$'
[286] Fix | Delete
elsif key = config[v = v[/\A[^:]+(?=(?::(.*?)=(.*))?\z)/]]
[287] Fix | Delete
pat, sub = $1, $2
[288] Fix | Delete
config[v] = false
[289] Fix | Delete
config[v] = RbConfig::expand(key, config)
[290] Fix | Delete
key = key.gsub(/#{Regexp.quote(pat)}(?=\s|\z)/n) {sub} if pat
[291] Fix | Delete
key
[292] Fix | Delete
else
[293] Fix | Delete
var
[294] Fix | Delete
end
[295] Fix | Delete
}
[296] Fix | Delete
val.replace(newval) unless newval == val
[297] Fix | Delete
val
[298] Fix | Delete
end
[299] Fix | Delete
CONFIG.each_value do |val|
[300] Fix | Delete
RbConfig::expand(val)
[301] Fix | Delete
end
[302] Fix | Delete
[303] Fix | Delete
# call-seq:
[304] Fix | Delete
#
[305] Fix | Delete
# RbConfig.ruby -> path
[306] Fix | Delete
#
[307] Fix | Delete
# returns the absolute pathname of the ruby command.
[308] Fix | Delete
def RbConfig.ruby
[309] Fix | Delete
File.join(
[310] Fix | Delete
RbConfig::CONFIG["bindir"],
[311] Fix | Delete
RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]
[312] Fix | Delete
)
[313] Fix | Delete
end
[314] Fix | Delete
end
[315] Fix | Delete
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
[316] Fix | Delete
[317] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function