[evince/gnome-2-26] [build] Adds -no-undefined flag for Cygwin build



commit d18aa4d73c9191da8e867230e287d279d65a7ca0
Author: Nickolay V. Shmyrev <nshmyrev yandex ru>
Date:   Sun Apr 26 14:16:15 2009 +0400

    [build] Adds -no-undefined flag for Cygwin build
    
    Added flag -no-undefined required by Cygwin for installed shared
    libraries since Cygwin's libtool can't track library dependency
    automatically. Fixes GNOME bug #580058. Patch from Yaakov Selkowitz
    <yselkowitz users sourceforge net>
---
 configure.ac            |    2 +-
 libdocument/Makefile.am |    1 +
 libview/Makefile.am     |    1 +
 3 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2ad57d0..e7eb1be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -132,7 +132,7 @@ fi
 AC_SUBST(SMCLIENT_CFLAGS)
 AC_SUBST(SMCLIENT_LIBS)
 
-BACKEND_LIBTOOL_FLAGS="-module -avoid-version -export-symbols \$(top_srcdir)/backend/backend.symbols"
+BACKEND_LIBTOOL_FLAGS="-module -avoid-version -no-undefined -export-symbols \$(top_srcdir)/backend/backend.symbols"
 AC_SUBST(BACKEND_LIBTOOL_FLAGS)
 
 dnl ===== Check special functions
diff --git a/libdocument/Makefile.am b/libdocument/Makefile.am
index a16b68e..aa77cca 100644
--- a/libdocument/Makefile.am
+++ b/libdocument/Makefile.am
@@ -91,6 +91,7 @@ libevdocument_la_CFLAGS = \
 
 libevdocument_la_LDFLAGS = \
 	-version-info $(EV_DOCUMENT_LT_VERSION_INFO)	\
+	-no-undefined	\
 	-export-symbols-regex "^ev_*"	\
 	$(AM_LDFLAGS)
 
diff --git a/libview/Makefile.am b/libview/Makefile.am
index 1726d79..edfacef 100644
--- a/libview/Makefile.am
+++ b/libview/Makefile.am
@@ -49,6 +49,7 @@ libevview_la_CFLAGS = \
 
 libevview_la_LDFLAGS = \
 	-version-info $(EV_VIEW_LT_VERSION_INFO)	\
+	-no-undefined	\
 	-export-symbols-regex "^ev_*"	\
 	$(AM_LDFLAGS)
 



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