According to a bug report filed in the Debian bug tracking system an unknown version of the package failed to cross-build because of the -lfoo flags for SELinux being placed in LIBADD rather then LDFLAGS. The build system still looks similar in this regard so it's possible the problem still remains and hopefully this change should make things more correct even if I still don't know if it solves the entire problem. Reported-by: YunQiang Su <wzssyqa@xxxxxxxxx> Addresses-Debian-Bug: #721431 Signed-off-by: Andreas Henriksson <andreas@xxxxxxxx> --- libmount/src/Makemodule.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmount/src/Makemodule.am b/libmount/src/Makemodule.am index 54ab51d..afe5cfa 100644 --- a/libmount/src/Makemodule.am +++ b/libmount/src/Makemodule.am @@ -30,7 +30,7 @@ libmount_la_SOURCES = \ nodist_libmount_la_SOURCES = libmount/src/mountP.h -libmount_la_LIBADD = libcommon.la libblkid.la $(SELINUX_LIBS) +libmount_la_LIBADD = libcommon.la libblkid.la libmount_la_CFLAGS = \ $(SOLIB_CFLAGS) \ @@ -46,6 +46,7 @@ libmount_la_DEPENDENCIES = \ libmount_la_LDFLAGS = \ $(SOLIB_LDFLAGS) \ + $(SELINUX_LIBS) \ -Wl,--version-script=$(top_srcdir)/libmount/src/libmount.sym \ -version-info $(LIBMOUNT_VERSION_INFO) -- 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html