[Mesa-dev] [PATCH 16/24] gallium/targets: explicitly include a dummy.cpp and remove all the LINK mayhem

Matt Turner mattst88 at gmail.com
Fri Mar 28 14:40:47 PDT 2014


On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> We've been copying and pasting this hunk for a while now, only to prevent
> build issues on very old and buggy build toolchains. At this point this
> should no longer be needed, so we can cleanup all the mess and simplify
> our makefiles.

That's not why. It's because if all of your source files for a target
are .c, but you link with a .la file containing C++ then you need to
link using a C++ linker. Automake doesn't know that there's C++ in the
static library, so it doesn't know to link with g++.

So I can't review this patch, because I don't know whether what you're
trying to do is based on reality or not.


More information about the mesa-dev mailing list