NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-hppa/56876: hppa: "cc -pg" fails with "undefined reference to `mprotect'"



matthew green <mrg%eterna.com.au@localhost> writes:
>  in general, "-pg" requires "-static".  what happens there?

Hmm ... that works:
 
$ cc -pg -static hello.c
$ ./a.out
hello world
[ plausible-looking gmon.out produced, too ]

Shall I send in a patch to add -static to all these tests that
are invoking -pg without it?  Or is it supposed to work without
that these days?  I don't see any such statement in modern gcc's
manual.

			regards, tom lane


Home | Main Index | Thread Index | Old Index