> i think cases can be made for the other internal gcc libraries: ... > - libmudflap.la: build/link with `gcc -fmudflap`, not `gcc -lmudflap`
I'm afraid -fmudflap won't work alone (might be easy to fix in gcc?):
// a.c:
int main() { return 0; }
$ gcc -fmudflap a.c -o a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.6/../../../../lib64/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `__wrap_main'
/tmp/ccCbbGQy.o: In function `global constructors keyed to 00099_0_main':
a.c:(.text+0x10): undefined reference to `__mf_init'
collect2: ld returned 1 exit status
$gcc -fmudflap -lmudflap a.c -o a
# all ok
same is true for all -{f,l}mudflap{,th,ir}
--
Sergei
signature.asc
Description: PGP signature
