I'd like to build a tool for students that would recommend which GCC options to use by inspecting the #include they've used. For instance:
#include <math.h> // recommend -lm
#include <zlib.h> // recommend -lz
#include <pthread.h> // recommend -pthread
Is there somewhere a list of such associations for standard and classical libraries? I just need it for GCC and Linux.
-- EDIT
As it looks like that there is no known solution, I've started to build such a list, together with a simple wrapper script inspired from pkg-config: see GitHub repo