build: Fix out of tree builds Adding local-link.h as private header file requires $(srcdir) on AM_CPPFLAGS to be found by generated sources when builddir != srcdir. Do not use libmd.sym from $(srcdir), as it is a generated file. [guillem@hadrons.org: - Remove unrelated line moves. ] Signed-off-by: Guillem Jover <guillem@hadrons.org>
diff --git a/src/Makefile.am b/src/Makefile.am
index 9773f8f..341867a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,6 +2,7 @@
AM_CPPFLAGS = \
-I$(top_builddir) \
+ -I$(srcdir) \
-I$(top_srcdir)/include \
$(nil)
@@ -34,7 +35,7 @@ libmd_la_LDFLAGS += \
-Wl,--version-script=$(srcdir)/libmd.map
else
libmd_la_LDFLAGS += \
- -export-symbols $(srcdir)/libmd.sym
+ -export-symbols libmd.sym
EXTRA_libmd_la_DEPENDENCIES += \
libmd.sym
endif