Commit 52cb9cbef62cfa625a69f347f60bc7947fc13709

Guillem Jover 2020-09-17T03:19:51

build: Only depend on libmd.sym when using it

diff --git a/src/Makefile.am b/src/Makefile.am
index 2559a45..9773f8f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,6 +23,9 @@ libmd_la_helper_sources = \
 	sha512hl.c \
 	$(nil)
 
+EXTRA_libmd_la_DEPENDENCIES = \
+	libmd.map
+
 libmd_la_LDFLAGS = \
 	-no-undefined \
 	-version-number $(LIBMD_ABI)
@@ -32,10 +35,10 @@ libmd_la_LDFLAGS += \
 else
 libmd_la_LDFLAGS += \
 	-export-symbols $(srcdir)/libmd.sym
+EXTRA_libmd_la_DEPENDENCIES += \
+	libmd.sym
 endif
-EXTRA_libmd_la_DEPENDENCIES = \
-	libmd.map \
-	libmd.sym \
+EXTRA_libmd_la_DEPENDENCIES += \
 	helper.c \
 	$(nil)
 libmd_la_SOURCES = \