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

Bug#956757: mstflint FTCBFS: bad Makefile dependencies



Source: mstflint
Version: 4.13.3+2-2
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs

mstflint fails to cross build from source, because it includes
-lboost_regex in Makefile dependencies. Including such flag in a
Makefile dependency causes make to look it up using its
architecture-dependent library search path. When cross building, it
fails to find the library and errors out. In general, it doesn't make
sense to include system libraries in Makefile dependencies, so we can
simply skip the flag there. Please consider applying the attached patch
to make mstflint cross buildable again.

Helmut
--- mstflint-4.13.3+2.orig/mlxlink/Makefile.am
+++ mstflint-4.13.3+2/mlxlink/Makefile.am
@@ -64,10 +64,9 @@
                       $(USER_DIR)/reg_access/libreg_access.a \
                       $(LAYOUTS_DIR)/libtools_layouts.a \
                       $(USER_DIR)/xz_utils/libxz_utils.a \
-                      $(USER_DIR)/ext_libs/minixz/libminixz.a \
+                      $(USER_DIR)/ext_libs/minixz/libminixz.a
+
+mstlink_LDADD = $(mstlink_DEPENDENCIES) \
                       -lboost_regex -lboost_filesystem -lboost_system \
                       -llzma $(LIBSTD_CPP) ${LDL} -lexpat \
                       $(JSON_LIBS)
-
-mstlink_LDADD = $(mstlink_DEPENDENCIES)
-

Reply to: