Comment 5 for bug 159181

Revision history for this message
Wolfram Fenske (wolfram-fenske) wrote : Re: [Bug 159181] Re: Build fails on FreeBSD and NetBSD

Abdulaziz Ghuloum <email address hidden> schreibt:

> Googling around, it seems that you need to call gcc passing -Wl,-E
> Try ./configure LDFLAGS=-Wl,-E
> then make and see what happens.

Yes, that works too (on both FreeBSD and NetBSD). In fact, it should
work on Linux as well. The manpages for ld say the same thing about
the `-E' (`--export-dynamic') option.

At least on the two BSDs, LDFLAGS="-Wl,-E" is probably better than
CFLAGS="-rdynamic". Both methods work, but `-rdynamic' isn't
documented in the gcc manpages on FreeBSD or NetBSD (it is on Linux).