else
einfo (_("%P: cannot find %s: %E\n"), entry->local_sym_name);
+ /* Be kind to users who are creating static executables, but
+ have forgotten to install the necessary static libraries. */
+ if (entry->flags.dynamic == false && startswith (entry->local_sym_name, "-l"))
+ einfo (_("%P: have you installed the static version of the %s library ?\n"),
+ entry->local_sym_name + 2);
+
/* PR 25747: Be kind to users who forgot to add the
"lib" prefix to their library when it was created. */
for (arch = search_arch_head; arch != NULL; arch = arch->next)