[dia] [build] optionally link debug version of OGDF_LIBS



commit 1dacb44fd80c5336c5de520c38b29508700757fd
Author: Hans Breuer <hans breuer org>
Date:   Mon Oct 15 15:11:07 2012 +0200

    [build] optionally link debug version of OGDF_LIBS

 configure.in                |    6 +++++-
 plug-ins/layout/Makefile.am |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 9dce17f..6488b16 100644
--- a/configure.in
+++ b/configure.in
@@ -283,7 +283,11 @@ if test "$enable_ogdf" = "yes"; then
        AC_LANG_POP([C++])
        if test "$ogdf_ok" = yes; then
                OGDF_CFLAGS="-I ${ogdf_prefix}"
-               OGDF_LIBS="-L${ogdf_prefix}/_release -lOGDF -lstdc++"
+               if test "x$enable_debug" = "xno"; then
+                       OGDF_LIBS="-L${ogdf_prefix}/_release -lOGDF -lstdc++"
+               else
+                       OGDF_LIBS="-L${ogdf_prefix}/_debug -lOGDF -lstdc++"
+               fi
                AC_DEFINE(HAVE_OGDF,1,[OGDF library available])
        fi
 else
diff --git a/plug-ins/layout/Makefile.am b/plug-ins/layout/Makefile.am
index 77bca38..bfbef50 100644
--- a/plug-ins/layout/Makefile.am
+++ b/plug-ins/layout/Makefile.am
@@ -14,7 +14,7 @@ pkglib_LTLIBRARIES = liblayout_filter.la
 endif
 
 liblayout_filter_la_SOURCES = $(plugin_sources)
-liblayout_filter_la_LDFLAGS = -export-dynamic -module -avoid-version $(NO_UNDEFINED)
+liblayout_filter_la_LDFLAGS =  -pthread -export-dynamic -module -avoid-version $(NO_UNDEFINED)
 liblayout_filter_la_LIBADD = $(OGDF_LIBS)  $(top_builddir)/lib/libdia.la
 if OS_WIN32
 liblayout_filter_la_LIBADD += -lpsapi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]