Skip to content

Instantly share code, notes, and snippets.

@ignisf
Created January 8, 2013 13:14
Show Gist options
  • Save ignisf/4483718 to your computer and use it in GitHub Desktop.
Save ignisf/4483718 to your computer and use it in GitHub Desktop.
RbConfig::CONFIG on a 64-bit FreeBSD 9
irb(main):006:0> RbConfig::CONFIG.each {|key, value| p "#{key} => #{value}"}
"DESTDIR => "
"MAJOR => 1"
"MINOR => 9"
"TEENY => 1"
"PATCHLEVEL => 327"
"INSTALL => /usr/bin/install -c -o root -g wheel"
"EXEEXT => "
"prefix => /usr/local"
"ruby_install_name => ruby19"
"RUBY_INSTALL_NAME => ruby19"
"RUBY_SO_NAME => ruby19"
"exec => exec"
"ruby_pc => ruby-1.9.pc"
"PACKAGE => ruby"
"BUILTIN_TRANSSRCS => newline.c"
"USE_RUBYGEMS => YES"
"MANTYPE => doc"
"NROFF => /usr/bin/nroff"
"vendorhdrdir => /usr/local/include/ruby-1.9//vendor_ruby"
"sitehdrdir => /usr/local/include/ruby-1.9//site_ruby"
"rubyhdrdir => /usr/local/include/ruby-1.9/"
"UNIVERSAL_INTS => "
"UNIVERSAL_ARCHNAMES => "
"configure_args => '--with-rubyhdrdir=/usr/local/include/ruby-1.9/' '--with-rubylibprefix=/usr/local/lib/ruby' '--docdir=/usr/local/share/doc/ruby19' '--with-soname=ruby19' '--program-prefix=' '--program-suffix=19' '--enable-shared' '--enable-pthread' '--with-ruby-version=minor' '--with-sitedir=/usr/local/lib/ruby/site_ruby' '--with-vendordir=/usr/local/lib/ruby/vendor_ruby' '--disable-install-doc' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9' 'build_alias=amd64-portbld-freebsd9' 'CC=cc' 'CFLAGS=-I/usr/local/include -O2 -pipe -march=native -fno-strict-aliasing' 'LDFLAGS= -Wl,-rpath=/usr/lib:/usr/local/lib -pthread' 'LIBS=-L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -pthread' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -march=native -fno-strict-aliasing' 'CPP=cpp'"
"vendordir => /usr/local/lib/ruby/vendor_ruby"
"sitedir => /usr/local/lib/ruby/site_ruby"
"ruby_version => 1.9"
"sitearch => amd64-freebsd9"
"arch => amd64-freebsd9"
"RI_BASE_NAME => ri"
"ridir => /usr/local/share/ri"
"rubylibprefix => /usr/local/lib/ruby"
"MAKEFILES => Makefile"
"PLATFORM_DIR => "
"THREAD_MODEL => pthread"
"SYMBOL_PREFIX => "
"EXPORT_PREFIX => "
"COMMON_HEADERS => "
"COMMON_MACROS => "
"COMMON_LIBS => "
"MAINLIBS => "
"ENABLE_SHARED => yes"
"DLDLIBS => -lc"
"SOLIBS => -lexecinfo -lpthread -lcrypt -lm -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -pthread"
"LIBRUBYARG_SHARED => -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19"
"LIBRUBYARG_STATIC => -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19-static"
"LIBRUBYARG => -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19"
"LIBRUBY => libruby19.so.19"
"LIBRUBY_ALIASES => libruby19.so"
"LIBRUBY_SO => libruby19.so.19"
"LIBRUBY_A => libruby19-static.a"
"RUBYW_INSTALL_NAME => "
"rubyw_install_name => "
"LIBRUBY_DLDFLAGS => -L/usr/local/lib -Wl,-soname,$(.TARGET)"
"LIBRUBY_LDSHARED => cc -shared"
"warnflags => -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration"
"debugflags => "
"optflags => -O3"
"cxxflags => -O3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration"
"cflags => -O3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration"
"cppflags => "
"NULLCMD => :"
"INSTALLDOC => nodoc"
"CAPITARGET => nodoc"
"RDOCTARGET => nodoc"
"EXECUTABLE_EXTS => "
"ARCHFILE => "
"LIBRUBY_RELATIVE => no"
"EXTOUT => .ext"
"PREP => miniruby"
"TEST_RUNNABLE => yes"
"setup => Setup"
"EXTSTATIC => "
"STRIP => strip"
"TRY_LINK => "
"LIBPATHENV => LD_LIBRARY_PATH"
"RPATHFLAG => -Wl,-R%1$-s"
"LIBPATHFLAG => -L%1$-s"
"LINK_SO => "
"LIBEXT => a"
"DLEXT2 => "
"DLEXT => so"
"LDSHAREDXX => c++ -shared"
"LDSHARED => cc -shared"
"CCDLFLAGS => -fPIC"
"STATIC => "
"ARCH_FLAG => "
"DLDFLAGS => -L/usr/local/lib -Wl,-soname,$(.TARGET)"
"ALLOCA => "
"WERRORFLAG => -Werror"
"CHDIR => cd -P"
"RMALL => rm -fr"
"RMDIRS => rmdir -p"
"RMDIR => rmdir"
"CP => cp"
"RM => rm -f"
"PKG_CONFIG => pkg-config"
"DOXYGEN => "
"DOT => "
"MAKEDIRS => mkdir -p"
"MKDIR_P => mkdir -p"
"INSTALL_DATA => install -o root -g wheel -m 444"
"INSTALL_SCRIPT => install -o root -g wheel -m 555"
"INSTALL_PROGRAM => install -s -o root -g wheel -m 555"
"SET_MAKE => "
"LN_S => ln -s"
"NM => nm"
"DLLWRAP => "
"WINDRES => "
"OBJCOPY => :"
"OBJDUMP => objdump"
"ASFLAGS => "
"AS => as"
"AR => ar"
"RANLIB => ranlib"
"try_header => "
"COUTFLAG => -o "
"OUTFLAG => -o "
"CPPOUTFILE => -o conftest.i"
"GNU_LD => yes"
"GCC => yes"
"EGREP => /usr/bin/grep -E"
"GREP => /usr/bin/grep"
"CPP => cpp"
"CXXFLAGS => -O2 -pipe -march=native -fno-strict-aliasing"
"CXX => c++"
"OBJEXT => o"
"CPPFLAGS => -I/usr/local/include "
"LDFLAGS => -L. -Wl,-rpath=/usr/lib:/usr/local/lib -pthread -L/usr/local/lib -rdynamic"
"CFLAGS => -I/usr/local/include -O2 -pipe -march=native -fno-strict-aliasing -fPIC"
"CC => cc"
"target_os => freebsd9"
"target_vendor => portbld"
"target_cpu => amd64"
"target => amd64-portbld-freebsd9"
"host_os => freebsd9"
"host_vendor => portbld"
"host_cpu => amd64"
"host => amd64-portbld-freebsd9"
"RUBYW_BASE_NAME => rubyw"
"RUBY_BASE_NAME => ruby"
"build_os => freebsd9"
"build_vendor => portbld"
"build_cpu => amd64"
"build => amd64-portbld-freebsd9"
"RUBY_RELEASE_DATE => 2012-11-10"
"RUBY_PROGRAM_VERSION => 1.9.3"
"BASERUBY => ruby"
"target_alias => "
"host_alias => "
"build_alias => amd64-portbld-freebsd9"
"LIBS => -lexecinfo -lpthread -lcrypt -lm -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -pthread"
"ECHO_T => "
"ECHO_N => -n"
"ECHO_C => "
"DEFS => "
"mandir => /usr/local/man"
"localedir => /usr/local/share/locale"
"libdir => /usr/local/lib"
"psdir => /usr/local/share/doc/ruby19"
"pdfdir => /usr/local/share/doc/ruby19"
"dvidir => /usr/local/share/doc/ruby19"
"htmldir => /usr/local/share/doc/ruby19"
"infodir => /usr/local/info"
"docdir => /usr/local/share/doc/ruby19"
"oldincludedir => /usr/include"
"includedir => /usr/local/include"
"localstatedir => /usr/local/var"
"sharedstatedir => /usr/local/com"
"sysconfdir => /usr/local/etc"
"datadir => /usr/local/share"
"datarootdir => /usr/local/share"
"libexecdir => /usr/local/libexec"
"sbindir => /usr/local/sbin"
"bindir => /usr/local/bin"
"program_transform_name => s&$&19&;s&^&&"
"exec_prefix => /usr/local"
"PACKAGE_URL => "
"PACKAGE_BUGREPORT => "
"PACKAGE_STRING => "
"PACKAGE_VERSION => "
"PACKAGE_TARNAME => "
"PACKAGE_NAME => "
"PATH_SEPARATOR => :"
"SHELL => /bin/sh"
"rubylibdir => /usr/local/lib/ruby/1.9"
"archdir => /usr/local/lib/ruby/1.9/amd64-freebsd9"
"sitelibdir => /usr/local/lib/ruby/site_ruby/1.9"
"sitearchdir => /usr/local/lib/ruby/site_ruby/1.9/amd64-freebsd9"
"vendorlibdir => /usr/local/lib/ruby/vendor_ruby/1.9"
"vendorarchdir => /usr/local/lib/ruby/vendor_ruby/1.9/amd64-freebsd9"
"topdir => /usr/local/lib/ruby/1.9/amd64-freebsd9"
=> {"DESTDIR"=>"", "MAJOR"=>"1", "MINOR"=>"9", "TEENY"=>"1", "PATCHLEVEL"=>"327", "INSTALL"=>"/usr/bin/install -c -o root -g wheel", "EXEEXT"=>"", "prefix"=>"/usr/local", "ruby_install_name"=>"ruby19", "RUBY_INSTALL_NAME"=>"ruby19", "RUBY_SO_NAME"=>"ruby19", "exec"=>"exec", "ruby_pc"=>"ruby-1.9.pc", "PACKAGE"=>"ruby", "BUILTIN_TRANSSRCS"=>" newline.c", "USE_RUBYGEMS"=>"YES", "MANTYPE"=>"doc", "NROFF"=>"/usr/bin/nroff", "vendorhdrdir"=>"/usr/local/include/ruby-1.9//vendor_ruby", "sitehdrdir"=>"/usr/local/include/ruby-1.9//site_ruby", "rubyhdrdir"=>"/usr/local/include/ruby-1.9/", "UNIVERSAL_INTS"=>"", "UNIVERSAL_ARCHNAMES"=>"", "configure_args"=>" '--with-rubyhdrdir=/usr/local/include/ruby-1.9/' '--with-rubylibprefix=/usr/local/lib/ruby' '--docdir=/usr/local/share/doc/ruby19' '--with-soname=ruby19' '--program-prefix=' '--program-suffix=19' '--enable-shared' '--enable-pthread' '--with-ruby-version=minor' '--with-sitedir=/usr/local/lib/ruby/site_ruby' '--with-vendordir=/usr/local/lib/ruby/vendor_ruby' '--disable-install-doc' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9' 'build_alias=amd64-portbld-freebsd9' 'CC=cc' 'CFLAGS=-I/usr/local/include -O2 -pipe -march=native -fno-strict-aliasing' 'LDFLAGS= -Wl,-rpath=/usr/lib:/usr/local/lib -pthread' 'LIBS=-L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -pthread' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -march=native -fno-strict-aliasing' 'CPP=cpp'", "vendordir"=>"/usr/local/lib/ruby/vendor_ruby", "sitedir"=>"/usr/local/lib/ruby/site_ruby", "ruby_version"=>"1.9", "sitearch"=>"amd64-freebsd9", "arch"=>"amd64-freebsd9", "RI_BASE_NAME"=>"ri", "ridir"=>"/usr/local/share/ri", "rubylibprefix"=>"/usr/local/lib/ruby", "MAKEFILES"=>"Makefile", "PLATFORM_DIR"=>"", "THREAD_MODEL"=>"pthread", "SYMBOL_PREFIX"=>"", "EXPORT_PREFIX"=>"", "COMMON_HEADERS"=>"", "COMMON_MACROS"=>"", "COMMON_LIBS"=>"", "MAINLIBS"=>"", "ENABLE_SHARED"=>"yes", "DLDLIBS"=>" -lc", "SOLIBS"=>"-lexecinfo -lpthread -lcrypt -lm -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -pthread", "LIBRUBYARG_SHARED"=>"-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19", "LIBRUBYARG_STATIC"=>"-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19-static", "LIBRUBYARG"=>"-Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby19", "LIBRUBY"=>"libruby19.so.19", "LIBRUBY_ALIASES"=>"libruby19.so", "LIBRUBY_SO"=>"libruby19.so.19", "LIBRUBY_A"=>"libruby19-static.a", "RUBYW_INSTALL_NAME"=>"", "rubyw_install_name"=>"", "LIBRUBY_DLDFLAGS"=>"-L/usr/local/lib -Wl,-soname,$(.TARGET)", "LIBRUBY_LDSHARED"=>"cc -shared", "warnflags"=>"-Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration", "debugflags"=>"", "optflags"=>"-O3", "cxxflags"=>" -O3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration", "cflags"=>" -O3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration", "cppflags"=>"", "NULLCMD"=>":", "INSTALLDOC"=>"nodoc", "CAPITARGET"=>"nodoc", "RDOCTARGET"=>"nodoc", "EXECUTABLE_EXTS"=>"", "ARCHFILE"=>"", "LIBRUBY_RELATIVE"=>"no", "EXTOUT"=>".ext", "PREP"=>"miniruby", "TEST_RUNNABLE"=>"yes", "setup"=>"Setup", "EXTSTATIC"=>"", "STRIP"=>"strip", "TRY_LINK"=>"", "LIBPATHENV"=>"LD_LIBRARY_PATH", "RPATHFLAG"=>" -Wl,-R%1$-s", "LIBPATHFLAG"=>" -L%1$-s", "LINK_SO"=>"", "LIBEXT"=>"a", "DLEXT2"=>"", "DLEXT"=>"so", "LDSHAREDXX"=>"c++ -shared", "LDSHARED"=>"cc -shared", "CCDLFLAGS"=>"-fPIC", "STATIC"=>"", "ARCH_FLAG"=>"", "DLDFLAGS"=>"-L/usr/local/lib -Wl,-soname,$(.TARGET)", "ALLOCA"=>"", "WERRORFLAG"=>"-Werror", "CHDIR"=>"cd -P", "RMALL"=>"rm -fr", "RMDIRS"=>"rmdir -p", "RMDIR"=>"rmdir", "CP"=>"cp", "RM"=>"rm -f", "PKG_CONFIG"=>"pkg-config", "DOXYGEN"=>"", "DOT"=>"", "MAKEDIRS"=>"mkdir -p", "MKDIR_P"=>"mkdir -p", "INSTALL_DATA"=>"install -o root -g wheel -m 444", "INSTALL_SCRIPT"=>"install -o root -g wheel -m 555", "INSTALL_PROGRAM"=>"install -s -o root -g wheel -m 555", "SET_MAKE"=>"", "LN_S"=>"ln -s", "NM"=>"nm", "DLLWRAP"=>"", "WINDRES"=>"", "OBJCOPY"=>":", "OBJDUMP"=>"objdump", "ASFLAGS"=>"", "AS"=>"as", "AR"=>"ar", "RANLIB"=>"ranlib", "try_header"=>"", "COUTFLAG"=>"-o ", "OUTFLAG"=>"-o ", "CPPOUTFILE"=>"-o conftest.i", "GNU_LD"=>"yes", "GCC"=>"yes", "EGREP"=>"/usr/bin/grep -E", "GREP"=>"/usr/bin/grep", "CPP"=>"cpp", "CXXFLAGS"=>"-O2 -pipe -march=native -fno-strict-aliasing", "CXX"=>"c++", "OBJEXT"=>"o", "CPPFLAGS"=>"-I/usr/local/include ", "LDFLAGS"=>"-L. -Wl,-rpath=/usr/lib:/usr/local/lib -pthread -L/usr/local/lib -rdynamic", "CFLAGS"=>"-I/usr/local/include -O2 -pipe -march=native -fno-strict-aliasing -fPIC", "CC"=>"cc", "target_os"=>"freebsd9", "target_vendor"=>"portbld", "target_cpu"=>"amd64", "target"=>"amd64-portbld-freebsd9", "host_os"=>"freebsd9", "host_vendor"=>"portbld", "host_cpu"=>"amd64", "host"=>"amd64-portbld-freebsd9", "RUBYW_BASE_NAME"=>"rubyw", "RUBY_BASE_NAME"=>"ruby", "build_os"=>"freebsd9", "build_vendor"=>"portbld", "build_cpu"=>"amd64", "build"=>"amd64-portbld-freebsd9", "RUBY_RELEASE_DATE"=>"2012-11-10", "RUBY_PROGRAM_VERSION"=>"1.9.3", "BASERUBY"=>"ruby", "target_alias"=>"", "host_alias"=>"", "build_alias"=>"amd64-portbld-freebsd9", "LIBS"=>"-lexecinfo -lpthread -lcrypt -lm -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib -pthread", "ECHO_T"=>"", "ECHO_N"=>"-n", "ECHO_C"=>"", "DEFS"=>"", "mandir"=>"/usr/local/man", "localedir"=>"/usr/local/share/locale", "libdir"=>"/usr/local/lib", "psdir"=>"/usr/local/share/doc/ruby19", "pdfdir"=>"/usr/local/share/doc/ruby19", "dvidir"=>"/usr/local/share/doc/ruby19", "htmldir"=>"/usr/local/share/doc/ruby19", "infodir"=>"/usr/local/info", "docdir"=>"/usr/local/share/doc/ruby19", "oldincludedir"=>"/usr/include", "includedir"=>"/usr/local/include", "localstatedir"=>"/usr/local/var", "sharedstatedir"=>"/usr/local/com", "sysconfdir"=>"/usr/local/etc", "datadir"=>"/usr/local/share", "datarootdir"=>"/usr/local/share", "libexecdir"=>"/usr/local/libexec", "sbindir"=>"/usr/local/sbin", "bindir"=>"/usr/local/bin", "program_transform_name"=>"s&$&19&;s&^&&", "exec_prefix"=>"/usr/local", "PACKAGE_URL"=>"", "PACKAGE_BUGREPORT"=>"", "PACKAGE_STRING"=>"", "PACKAGE_VERSION"=>"", "PACKAGE_TARNAME"=>"", "PACKAGE_NAME"=>"", "PATH_SEPARATOR"=>":", "SHELL"=>"/bin/sh", "rubylibdir"=>"/usr/local/lib/ruby/1.9", "archdir"=>"/usr/local/lib/ruby/1.9/amd64-freebsd9", "sitelibdir"=>"/usr/local/lib/ruby/site_ruby/1.9", "sitearchdir"=>"/usr/local/lib/ruby/site_ruby/1.9/amd64-freebsd9", "vendorlibdir"=>"/usr/local/lib/ruby/vendor_ruby/1.9", "vendorarchdir"=>"/usr/local/lib/ruby/vendor_ruby/1.9/amd64-freebsd9", "topdir"=>"/usr/local/lib/ruby/1.9/amd64-freebsd9"}
irb(main):007:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment