summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'libstore')
-rw-r--r--libstore/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/libstore/Makefile b/libstore/Makefile
index b1172c6a..56c1fdfd 100644
--- a/libstore/Makefile
+++ b/libstore/Makefile
@@ -28,6 +28,10 @@ SRCS = create.c derive.c make.c rdwr.c set.c \
open.c xinl.c typed.c map.c url.c unknown.c \
stripe.c $(filter-out ileave.c concat.c,$(store-types:=.c))
+# This has to be evaluated after config.make has been included;
+# as a consequence, using 'ifneq' or similar is not an option.
+maybe_part = $(and $(PARTED_LIBS),part)
+
store-types = \
bunzip2 \
concat \
@@ -40,16 +44,12 @@ store-types = \
module \
mvol \
nbd \
+ $(maybe_part) \
remap \
task \
zero
-ifeq (HAVE_PARTED,yes)
-store-types += part
-libstore.so-LDLIBS += -lparted
-endif
-
-libstore.so-LDLIBS += -ldl
+libstore.so-LDLIBS += $(PARTED_LIBS) -ldl
LCLHDRS=store.h
installhdrs=store.h