grisbi/grisbi-fix-linking.patch

28 lines
1015 B
Diff

Index: grisbi-0.8.8/configure.in
===================================================================
--- grisbi-0.8.8.orig/configure.in
+++ grisbi-0.8.8/configure.in
@@ -54,6 +54,9 @@ dnl ====================================
dnl Main Grisbi libraries
dnl ================================================================
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
#PKG_CHECK_MODULES(GRISBI, [gtk+-2.0 >= 2.2.0 glib-2.0 >= 2.2 gmodule-2.0 >= 2.2 zlib])
# Temporary hack until Mandriva ships zlib.pc
PKG_CHECK_MODULES(GRISBI, [gtk+-2.0 >= 2.12.0 glib-2.0 >= 2.18.0 gmodule-2.0 >= 2.18.0])
Index: grisbi-0.8.8/src/Makefile.am
===================================================================
--- grisbi-0.8.8.orig/src/Makefile.am
+++ grisbi-0.8.8/src/Makefile.am
@@ -16,7 +16,7 @@ libgrisbi_la_LIBADD += \
else
libgrisbi_la_LDFLAGS = -export_dynamic
endif
-libgrisbi_la_LIBADD += $(GRISBI_LIBS) $(IGE_MAC_LIBS)
+libgrisbi_la_LIBADD += $(LIBM) $(GRISBI_LIBS) $(IGE_MAC_LIBS)
libgrisbi_la_SOURCES = \
accueil.c \