Skip to content

Commit

Permalink
Makefiles: remove libkeyutils from every binary except two
Browse files Browse the repository at this point in the history
Only rbd and mount_ceph need secret.c, and only secret.c needs libkeyutils;
remove it from LIBCOMMON_DEPS so it's not a dependency for everything,
remove secret.c from libcommon.a, and add it to mount.ceph/rbd's sources;
add LIBKEYID_LIB to mount.ceph/rbd's LDADD.

Signed-off-by: Dan Mick <[email protected]>
  • Loading branch information
Dan Mick committed Mar 19, 2014
1 parent 381850b commit cfb04b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Makefile-env.am
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ AM_CCASFLAGS = -f elf64
#####################
## library definitions and dependencies

EXTRALIBS = -luuid -lm $(KEYUTILS_LIB)
EXTRALIBS = -luuid -lm
if FREEBSD
EXTRALIBS += -lexecinfo
endif # FREEBSD
Expand Down
8 changes: 4 additions & 4 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ bin_PROGRAMS += ceph-mds

# user tools

mount_ceph_SOURCES = mount/mount.ceph.c
mount_ceph_LDADD = $(LIBCOMMON)
mount_ceph_SOURCES = mount/mount.ceph.c common/secret.c
mount_ceph_LDADD = $(LIBCOMMON) $(KEYUTILS_LIB)
if LINUX
su_sbin_PROGRAMS += mount.ceph
endif # LINUX
Expand All @@ -74,8 +74,8 @@ ceph_syn_SOURCES += client/SyntheticClient.cc # uses g_conf.. needs cleanup
ceph_syn_LDADD = $(LIBCLIENT) $(CEPH_GLOBAL)
bin_PROGRAMS += ceph-syn

rbd_SOURCES = rbd.cc
rbd_LDADD = $(LIBRBD) $(LIBRADOS) $(CEPH_GLOBAL) -lblkid
rbd_SOURCES = rbd.cc common/secret.c
rbd_LDADD = $(LIBRBD) $(LIBRADOS) $(CEPH_GLOBAL) -lblkid $(KEYUTILS_LIB)
if LINUX
bin_PROGRAMS += rbd
endif #LINUX
Expand Down
8 changes: 1 addition & 7 deletions src/common/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ libcommon_la_SOURCES = \
common/bloom_filter.cc \
common/linux_version.c

if LINUX
libcommon_la_SOURCES += \
common/secret.c
endif

# these should go out of libcommon
libcommon_la_SOURCES += \
mon/MonCap.cc \
Expand Down Expand Up @@ -114,8 +109,7 @@ noinst_HEADERS += \
LIBCOMMON_DEPS += \
$(LIBERASURE_CODE) \
$(LIBMSG) $(LIBAUTH) \
$(LIBCRUSH) $(LIBJSON_SPIRIT) $(LIBLOG) $(LIBARCH) \
$(KEYUTILS_LIB)
$(LIBCRUSH) $(LIBJSON_SPIRIT) $(LIBLOG) $(LIBARCH)

if LINUX
LIBCOMMON_DEPS += -lrt
Expand Down

0 comments on commit cfb04b2

Please sign in to comment.