[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Program segfaults if compiled with -pg and linked to shared library
On Wed, 3 Mar 2021, Christos Zoulas wrote:
If you compile with -Bstatic -lc_g -Bdynamic explicitly I think it works.
So perhaps there is a libc issue.
Err -Bstatic -lc_p -Bdynamic
If this is the command you meant, then it doesn't work either:
$ cc -g -pg t.c -Bstatic -lc_p -Bdynamic -lcurses
ld: /usr/lib/libc.so.12: warning: warning: __findenv is an internal obsolete function.
Segmentation fault (core dumped)
As mrg@ indicated, maybe profiling + shared libs is not a supported
configuration on the *BSDs.
Main Index |
Thread Index |