[Mesa-dev] [PATCH] egl/wayland: Fix linking libEGL_common.la

Matt Turner mattst88 at gmail.com
Thu Jul 20 20:54:51 UTC 2017


On Thu, Jul 20, 2017 at 1:25 PM, Mike Lothian <mike at fireburn.co.uk> wrote:
> Because libmesautil.la includes string_to_uint_map.o, -lstdc++ is
> required for linking to succeed
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101851
>
> Signed-off-by: Mike Lothian <mike at fireburn.co.uk>
> ---
>  src/egl/Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
> index 7c1a4929b8..830ed52b86 100644
> --- a/src/egl/Makefile.am
> +++ b/src/egl/Makefile.am
> @@ -83,7 +83,7 @@ AM_CFLAGS += $(WAYLAND_CFLAGS)
>  libEGL_common_la_LIBADD += $(WAYLAND_LIBS)
>  libEGL_common_la_LIBADD += $(LIBDRM_LIBS)
>  libEGL_common_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la
> -libEGL_common_la_LIBADD += $(top_builddir)/src/util/libmesautil.la
> +libEGL_common_la_LIBADD += $(top_builddir)/src/util/libmesautil.la -lstdc++

Instead of adding -lstdc++ to LIBADD, you want to use the C++ linker
by specifying a dummy cpp file in EXTRA_*_SOURCES. grep for dummy.cpp
and you'll fine examples.


More information about the mesa-dev mailing list