Re: clang -pg, libm and the _end symbol

2016-02-24 Thread Raphael Kubo da Costa
Konstantin Belousov <kostik...@gmail.com> writes: > On Wed, Feb 24, 2016 at 01:54:25PM +0100, Dimitry Andric wrote: >> On 24 Feb 2016, at 12:27, Raphael Kubo da Costa <rak...@freebsd.org> wrote: >> > >> > I'm reviewing an update to the textproc/miller port

clang -pg, libm and the _end symbol

2016-02-24 Thread Raphael Kubo da Costa
I'm reviewing an update to the textproc/miller port in bug 207194, and noticed it does some ugly things in post-configure to seemingly work around the following problem (on 11-HEAD at least): % echo 'int main(void) { return 0; }' > foo.c % clang -pg foo.c -lm /usr/bin/ld: undefined reference