[Mesa-dev] [PATCH 7/7] meson: fix deps and underlinkage of libGL

Dylan Baker dylan at pnwbakers.com
Tue Nov 28 18:21:20 UTC 2017


Quoting Emil Velikov (2017-11-27 06:31:35)
> IIRC Windows mandates binaries with unresolved symbols.
> Other platforms allow such behaviour.
> 
> I think we want to set b_lundef=true, to catch these issues as part of
> the build process.
> We already do so in the autotools, android and at least partially in scons.
> 
> One would need a workaround for the sanitizers [1] analogous to our
> autotools and scons builds.
> 
> Thanks for catching this Jon.
> -Emil
> 
> [1] https://github.com/mesonbuild/meson/issues/764
> See commits 8b5d477aa820e52ed622c329933550c561ab1c93 and
> fa46848e51a619aba5a748316fe8fe4c2e17d243
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

JFYI, 

b_lundef is true by default, and we don't override it. In this case (unless I'm
completely misreading/remembering [I wrote a very similar patch in my macos
branch]), the linkage is correct for Linux (possibly BSD too), but incorrect for
macOS, Cygwin, and Windows.

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171128/e328acbe/attachment.sig>


More information about the mesa-dev mailing list