On Fri, Jun 29, 2018 at 06:01:15PM +0200, Andrea Bolognani wrote:
There's nothing target-specific about either. This is
going to be useful later on.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
src/Makefile.am | 35 ++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 688dfb5..1b73c8d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,22 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/src \
-DVIRT_DBUS_INTERFACES_DIR=\"$(DBUS_INTERFACES_DIR)\"
+AM_CFLAGS = \
+ $(GIO2_CFLAGS) \
+ $(GLIB2_CFLAGS) \
+ $(LIBVIRT_CFLAGS) \
+ $(LIBVIRT_GLIB_CFLAGS) \
+ $(WARN_CFLAGS) \
+ $(PIE_CFLAGS) \
+ $(NULL)
+AM_LDFLAGS = \
+ $(GIO2_LDFLAGS) \
+ $(GLIB2_LDFLAGS) \
+ $(LIBVIRT_LDFLAGS) \
+ $(LIBVIRT_GLIB_LDFLAGS) \
+ $(RELRO_LDFLAGS) \
+ $(PID_LDFLAGS) \
s/PID/PIE/
Pavel