On 2016-07-08 20:31, Stuart Henderson wrote:
On 2016-07-07, Tinker <ti...@openmailbox.org> wrote:
[..]
Having *all* library dependencies compiled with eg++ would ensure
linking to the right runtime version

We can't do that because one of those dependencies is mesa which in

(To Mesa on the bottom.)

its current location in xenocara can only be built with a compiler
from base and GPLv3 is not a suitable license there.

Two solutions seem appropriate: move mesa libs to ports (but this
is not desirable as it is coupled to drm kernel code so it would
increase the risk of breakage in snapshots after changes),

GNU G++-suffering.

All other OS:es should have some level of pain with it, I suppose;

The C++11 and -98/03 language standards don't mix completely, so even if it would have been an option, "eg++ -std=c++11" is not at all necessarily a panacea.

or bring in libc++ and clang (which would have other advantages).

libc++ (http://libcxx.llvm.org/) - cool!

Clang you know better than me.

Tweaking things by adding some library-specific mechanism to ld.so seems a nasty hack to me.

What the Linuxes do is just use SONAME and some file naming convention and maybe ELF header, to make ld.so load one and not the other, that is standard logic apparently (nothing special for libstdc++). Anyhow re OpenBSD, on this topic I have testing and studying homework now.



About Mesa,

On 2016-07-07 16:27, Stuart Henderson wrote:
The biggest problem is X libraries that use C++ (Mesa) when most
large or actively-maintained-upstream C++ ports require a C++11
compiler.

What is the problem.. that you need to backport its sourcecode from C++11 to 98/03 on OpenBSD.. noo?

But, that you compile it in 98/03 mode, but other code in ports that link to it is compiled in 11 mode, and you're worried about the friction documented on https://gcc.gnu.org/wiki/Cxx11AbiCompatibility , so if using GNU GCC at all, 11-mode for all of it including Mesa would be preferable, and then you run into gplv3 licensing issues, which in turn makes libc++ + clang look very attractive?


Thanks and have a great weekend ahead!

Reply via email to