]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
make: build common/secret only on linux 624/head
authorNoah Watkins <noahwatkins@gmail.com>
Mon, 23 Sep 2013 15:19:23 +0000 (08:19 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Mon, 23 Sep 2013 20:07:12 +0000 (13:07 -0700)
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 <noahwatkins@gmail.com>
src/common/Makefile.am

index 4c027909b4df5317f0a53bec1e76947dd1d30a18..3526118205f8711461e45c6d90258de4321976cf 100644 (file)
@@ -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 \