summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Henriksson2014-09-19 01:36:34 +0200
committerKarel Zak2014-09-22 12:54:09 +0200
commit200cdfa8b1ba1e6827f8f0cd9b26eee7bcfd2ac5 (patch)
tree1167be89c1ca30f1565fb4c322fc8f5deaf8bcc1
parentlibmount: only invoke loopcxt on linux (diff)
downloadkernel-qcow2-util-linux-200cdfa8b1ba1e6827f8f0cd9b26eee7bcfd2ac5.tar.gz
kernel-qcow2-util-linux-200cdfa8b1ba1e6827f8f0cd9b26eee7bcfd2ac5.tar.xz
kernel-qcow2-util-linux-200cdfa8b1ba1e6827f8f0cd9b26eee7bcfd2ac5.zip
libmount: only include context on linux
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@fatal.se>
-rw-r--r--libmount/src/Makemodule.am12
1 files changed, 8 insertions, 4 deletions
diff --git a/libmount/src/Makemodule.am b/libmount/src/Makemodule.am
index d21179a9c..5a03520c9 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)