From 27fb44b358a15bd77f78c26c836d957a9a5654ad Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Mon, 23 Sep 2013 08:19:23 -0700 Subject: make: build common/secret only on linux libkeyutils is only available on linux. before the automake refactoring secret.c was compiled into rbd and ceph_mount targets which are linux only targets. secret.c was moved to libcommon during the refactoring, but the conditional compilation was lost. Signed-off-by: Noah Watkins --- src/common/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 4c027909b4d..3526118205f 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -59,7 +59,6 @@ libcommon_la_SOURCES = \ common/pick_address.cc \ common/util.cc \ common/TextTable.cc \ - common/secret.c \ common/ceph_fs.cc \ common/ceph_hash.cc \ common/ceph_strings.cc \ @@ -67,6 +66,10 @@ libcommon_la_SOURCES = \ common/addr_parsing.c \ common/hobject.cc +if LINUX +libcommon_la_SOURCES += common/secret.c +endif + # these should go out of libcommon libcommon_la_SOURCES += \ mon/MonCap.cc \ -- cgit v1.2.1