def getLibPath(libName, libPath, compiler, libExt):
    """
      get the lib path with the os / compiler specific prefix and file extension
  """
    libPath += '/'
    if compiler.startswith('gcc') or compiler.startswith('clang'):
        libPath += 'lib'
    libPath += libName + libExt
    return libPath
