[Mesa-dev] [PATCH] configure: check for dladdr via AC_CHECK_FUNC/AC_CHECK_LIB

Pali Rohár pali.rohar at gmail.com
Fri Aug 8 11:52:20 PDT 2014


This problem happen when gcc is compiled with LTO support (even 
if is not used). Also in some manpage (I do not remember) is 
written that it depends on order of arguments for compiler/linker

Btw, you can add my Signed-off-by to commit message.

On Friday 08 August 2014 19:58:07 Ilia Mirkin wrote:
> The problem is that AC_CHECK_FUNCS would stick the LDFLAGS
> before the conftest.c arg while AC_CHECK_LIB sticks the -ldl
> after conftest.c. This apparently matters with newer gcc's.
> There's probably some correct autoconf way of dealing with
> it, but... this works :)
> 
> On Fri, Aug 8, 2014 at 1:55 PM, Matt Turner 
<mattst88 at gmail.com> wrote:
> > No idea why this was a problem, but the new code matches the
> > existing dlopen check.
> > 
> > Reviewed-by: Matt Turner <mattst88 at gmail.com>
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/mesa-dev

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140808/a9042431/attachment.sig>


More information about the mesa-dev mailing list