diff options
author | Andreas Henriksson <andreas@fatal.se> | 2014-09-19 01:36:34 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-10-24 10:20:03 +0200 |
commit | 64f95187fd544c7f8f521631644fd62526ea038d (patch) | |
tree | e96cf43f641f5b4d5e40dba880cbc3f61023319c | |
parent | aedbde42432f5d774bb0adb363c5d668423b42ec (diff) | |
download | util-linux-64f95187fd544c7f8f521631644fd62526ea038d.tar.gz |
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.am | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libmount/src/Makemodule.am b/libmount/src/Makemodule.am index 54ab51d3e..fbd0e3889 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) |