From 4efcd33eb5b2aae136a85f40a3f227b11f72d31e Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Tue, 8 Jul 2014 15:53:41 -0700 Subject: [PATCH] configure.ac: Fix broken build for Qt backend When --enable-qt is specified, the build will break due to missing libstdc++: CCLD cairo-test-suite /usr/bin/ld: ../boilerplate/.libs/libcairoboilerplate.a(libcairoboilerplate_cxx_la-cairo-boilerplate-qt.o): undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3' //usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status When using g++ to compile and link code, g++ automatically links libstdc++. However, in cairo we're using g++ only to compile, so need to explicitly link against libstdc++ for backends that need iostream, stl, or other stdc++ features. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59038 Signed-off-by: Bryce Harrington Reviewed-by: Uli Schlachter --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 4e35ba74d..d126479c8 100644 --- a/configure.ac +++ b/configure.ac @@ -190,6 +190,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(qt, Qt, no, [ [qt_REQUIRES="" use_qt="no (requires Qt4 development libraries)" ]) + qt_NONPKGCONFIG_LIBS="-lstdc++" ]) dnl ===========================================================================