[Buildd-tools-devel] [PATCH 01/22] Just link schroot-mount to boost filesystem lib

Jan-Marek Glogowski glogow at fbihome.de
Thu Mar 26 21:13:39 UTC 2009


Follow suggestion from dh_shlibdeps, as no other program uses
symbols from libboost_filesystem.
---
 bin/schroot-mount/Makefile.am |    5 ++++-
 configure.ac                  |    3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/schroot-mount/Makefile.am b/bin/schroot-mount/Makefile.am
index 2ef8046..fe45ac4 100644
--- a/bin/schroot-mount/Makefile.am
+++ b/bin/schroot-mount/Makefile.am
@@ -35,4 +35,7 @@ schroot_mount_SOURCES =			\
 	schroot-mount-options.h		\
 	schroot-mount-options.cc	\
 	schroot-mount.cc
-schroot_mount_LDADD = $(top_builddir)/bin/schroot-base/libschroot-base.la
+
+schroot_mount_LDADD = $(BOOST_FILESYSTEM_LIBS)			\
+	$(top_builddir)/bin/schroot-base/libschroot-base.la
+
diff --git a/configure.ac b/configure.ac
index 5968584..1d5a1dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -291,12 +291,13 @@ LDFLAGS="${LDFLAGS} -lboost_filesystem-mt"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/filesystem.hpp>],
                                [boost::filesystem::is_directory("/")])],
                [AC_MSG_RESULT([yes])
-	        BOOST_LIBS="${BOOST_LIBS} -lboost_filesystem-mt"],
+	        BOOST_FILESYSTEM_LIBS="-lboost_filesystem-mt"],
                [AC_MSG_RESULT([no])
 	        AC_MSG_FAILURE([libboost_filesystem (Boost C++ Libraries) is not installed, but is required by schroot])])
 LDFLAGS="${saved_ldflags}"
 
 AC_SUBST([BOOST_LIBS])
+AC_SUBST([BOOST_FILESYSTEM_LIBS])
 
 AC_MSG_CHECKING([for __gnu_cxx::stdio_filebuf in libstdc++])
 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <ext/stdio_filebuf.h>
-- 
1.6.2.1




More information about the Buildd-tools-devel mailing list