This is part of an attempt to make libmount buildable on non-linux. The parts that need architecture specific porting is under the context*.c files and the rest of libmount is useful/used by for example fsck. Signed-off-by: Andreas Henriksson <andreas@xxxxxxxx> --- libmount/src/Makemodule.am | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libmount/src/Makemodule.am b/libmount/src/Makemodule.am index d21179a..5a03520 100644 --- a/libmount/src/Makemodule.am +++ b/libmount/src/Makemodule.am @@ -8,10 +8,6 @@ libmount_la_SOURCES = \ include/list.h \ \ libmount/src/cache.c \ - libmount/src/context.c \ - libmount/src/context_loopdev.c \ - libmount/src/context_mount.c \ - libmount/src/context_umount.c \ libmount/src/fs.c \ libmount/src/init.c \ libmount/src/iter.c \ @@ -28,6 +24,14 @@ libmount_la_SOURCES = \ libmount/src/version.c \ $(nodist_mountinc_HEADERS) +if LINUX +libmount_la_SOURCES += \ + libmount/src/context.c \ + libmount/src/context_loopdev.c \ + libmount/src/context_mount.c \ + libmount/src/context_umount.c +endif + nodist_libmount_la_SOURCES = libmount/src/mountP.h libmount_la_LIBADD = libcommon.la libblkid.la $(SELINUX_LIBS) -- 2.1.0.rc1 -- 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