The GCC manual states that libmudflap will be linked if the -fmudflap option is give to the linker:
The instrumentation relies on a separate runtime library (libmudflap), which will be linked into a program if -fmudflap is given at link time. But that is not true, the program links only if -lmudflap is also given to the linker. Michael Cieslinski -- Summary: linker does not link libmudflap automatically with - fmudflap Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: libmudflap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: micis at gmx dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: x86_64-redhat-linux GCC host triplet: x86_64-redhat-linux GCC target triplet: x86_64-redhat-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18885