]> 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>
Fri, 24 Oct 2014 08:20:03 +0000 (10:20 +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 54ab51d3e6d62cc74ba66922019ddb04a9a8107b..fbd0e3889a91ffc96d645af76a8eba52d450a309 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)