]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: only include context on linux
authorAndreas Henriksson <andreas@fatal.se>
Thu, 18 Sep 2014 23:36:34 +0000 (01:36 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Sep 2014 10:54:09 +0000 (12:54 +0200)
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>
libmount/src/Makemodule.am

index d21179a9c062a452cb0840043d6cdad23d271e42..5a03520c91d6ea28fccb1a2072260ae675496cff 100644 (file)
@@ -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)