Commit 0f57340069a4eabfef3cfec53184837927b70ac9

Michael Haubenwallner 2020-12-22T18:47:47

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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