code: def runtime_library_dir_option(self, dir):
      # XXX Hackish, at the very least.  See Python bug #445902:
      # http://sourceforge.net/tracker/index.php
      #   ?func=detail&aid=445902&group_id=5470&atid=105470
      # Linkers on different platforms need different options to
      # specify that directories need to be added to the list of
      # directories searched for dependencies when a dynamic library
      # is sought.  GCC on GNU systems (Linux, FreeBSD, ...) has to
      # be told to pass the -R option through to the linker, whereas
      # other compilers and gcc on other systems just know this.
      # Other compilers may need something slightly different.  At
      # this time, there's no way to determine this information from
      # the configuration data stored in the Python installation, so
      # we use this hack.
      compiler = os.path.basename(sysconfig.get_config_var("CC"))
      if sys.platform[:6] == "darwin":
          # MacOSX's linker doesn't understand the -R flag at all
          return "-L" + dir
      elif sys.platform[:7] == "freebsd":
          return "-Wl,-rpath=" + dir
      elif sys.platform[:5] == "hp-ux":
          if self._is_gcc(compiler):
              return ["-Wl,+s", "-L" + dir]
          return ["+s", "-L" + dir]
      else:
          if self._is_gcc(compiler):
              # gcc on non-GNU systems does not need -Wl, but can
              # use it anyway.  Since distutils has always passed in
              # -Wl whenever gcc was used in the past it is probably
              # safest to keep doing so.
              if sysconfig.get_config_var("GNULD") == "yes":
                  # GNU ld needs an extra option to get a RUNPATH
                  # instead of just an RPATH.
                  return "-Wl,--enable-new-dtags,-R" + dir
              else:
                  return "-Wl,-R" + dir
          else:
              # No idea how --enable-new-dtags would be passed on to
              # ld if this system was using GNU ld.  Don't know if a
              # system like this even exists.
              return "-R" + dir
  
file_path: catboost/contrib/tools/python3/src/Lib/distutils/unixccompiler.py
imports: import os, sys, re
  from distutils import sysconfig
  from distutils.dep_util import newer
  from distutils.ccompiler import CCompiler, gen_preprocess_options, gen_lib_options
  from distutils.errors import DistutilsExecError, CompileError, LibError, LinkError
  from distutils import log
label_desc: Use image node_id 7 for calling the UnixCCompiler obj's underlying member method code with example usage: obj.runtime_library_dir_option(dir) and returns: unknown, unknown, list, list, unknown, unknown, unknown