Index: tools/gn/variables.cc |
diff --git a/tools/gn/variables.cc b/tools/gn/variables.cc |
index 36537fc16543cc02c11164526c43c3c66c1191ec..f564231fd435d5f2d64f71b32c5ef69d936620fc 100644 |
--- a/tools/gn/variables.cc |
+++ b/tools/gn/variables.cc |
@@ -640,6 +640,13 @@ const char kLibs_Help[] = |
" the \"lib_dirs\" so your library is found. If you need to specify\n" |
" a path, you can use \"rebase_path\" to convert a path to be relative\n" |
" to the build directory.\n" |
+ "\n" |
+ " When constructing the linker command, the \"lib_prefix\" attribute of\n" |
+ " the linker tool in the current toolchain will be prepended to each\n" |
+ " library. So your BUILD file should not specify the switch prefix\n" |
+ " (like \"-l\"). On Mac, libraries ending in \".framework\" will be\n" |
+ " special-cased: the switch \"-framework\" will be prepended instead of\n" |
+ " the lib_prefix, and the \".framework\" suffix will be trimmed.\n" |
COMMON_LIB_INHERITANCE_HELP |
"\n" |
"Examples:\n" |