From: Hib Eris Date: Mon, 15 Feb 2010 12:26:17 +0000 (+0100) Subject: [build] Fix linking with pedantic linkers X-Git-Tag: EVINCE_2_29_91~13 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=evince.git;a=commitdiff_plain;h=da04a0f2ee32c2559e34dcbd15524e9bb8811d81 [build] Fix linking with pedantic linkers - Explicitly link to x11 on gnome platform. - Explicitly link evince (shell) with libm. - Add explicit -lm flag for libevview and backends, so that we do not depend on gtk+-2.0's .pc file to pull this flag in. Fixes bgo#609895. --- diff --git a/configure.ac b/configure.ac index 5f623358..70fae5fc 100644 --- a/configure.ac +++ b/configure.ac @@ -155,6 +155,8 @@ case "$with_platform" in # the hicolor-icon-theme does not have a pkgconfig file, on gnome we # require the gnome icon theme instead. SHELL_PLATFORM_PKGS="gnome-icon-theme >= $GNOME_ICON_THEME_REQUIRED" + # The totem-screensaver and egg_smclient code use x11 directly. + SHELL_PLATFORM_PKGS="$SHELL_PLATFORM_PKGS x11" ;; *) # On all other platforms we issue a warning about the runtime @@ -345,16 +347,17 @@ AC_SUBST(LIBDOCUMENT_CFLAGS) AC_SUBST(LIBDOCUMENT_LIBS) LIBVIEW_CFLAGS="$LIBVIEW_CFLAGS $GTKUNIXPRINT_CFLAGS $DEBUG_FLAGS" -LIBVIEW_LIBS="$LIBVIEW_LIBS $GTKUNIXPRINT_LIBS" +LIBVIEW_LIBS="$LIBVIEW_LIBS $GTKUNIXPRINT_LIBS -lm" AC_SUBST(LIBVIEW_CFLAGS) AC_SUBST(LIBVIEW_LIBS) BACKEND_CFLAGS="$BACKEND_CFLAGS -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE $DEBUG_FLAGS" +BACKEND_LIBS="$BACKEND_LIBS -lm" AC_SUBST(BACKEND_CFLAGS) AC_SUBST(BACKEND_LIBS) SHELL_CFLAGS="$SHELL_CORE_CFLAGS $DBUS_CFLAGS $KEYRING_CFLAGS $GCONF_CFLAGS -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE $DEBUG_FLAGS" -SHELL_LIBS="$SHELL_CORE_LIBS $DBUS_LIBS $KEYRING_LIBS $GCONF_LIBS -lz" +SHELL_LIBS="$SHELL_CORE_LIBS $DBUS_LIBS $KEYRING_LIBS $GCONF_LIBS -lz -lm" AC_SUBST(SHELL_CFLAGS) AC_SUBST(SHELL_LIBS)