Blame SOURCES/0001-build-sys-Pass-CFLAGS-to-DTRACE.patch

2d3b65
From d7233ef81e575e84d831414605ba6368394d88b5 Mon Sep 17 00:00:00 2001
2d3b65
From: Colin Walters <walters@verbum.org>
2d3b65
Date: Mon, 15 Oct 2018 21:50:31 +0000
2d3b65
Subject: [PATCH] build-sys: Pass CFLAGS to $(DTRACE)
2d3b65
2d3b65
Fedora is using https://fedoraproject.org/wiki/Changes/Annobin
2d3b65
to try to ensure that all objects are built with hardening flags.
2d3b65
Pass down `CFLAGS` to ensure the SystemTap objects use them.
2d3b65
---
2d3b65
 gio/Makefile.am     | 2 +-
2d3b65
 glib/Makefile.am    | 2 +-
2d3b65
 gobject/Makefile.am | 2 +-
2d3b65
 3 files changed, 3 insertions(+), 3 deletions(-)
2d3b65
2d3b65
diff --git a/gio/Makefile.am b/gio/Makefile.am
2d3b65
index fc0b91855..05b20cdef 100644
2d3b65
--- a/gio/Makefile.am
2d3b65
+++ b/gio/Makefile.am
2d3b65
@@ -896,7 +896,7 @@ gio_probes.h: gio_probes.d
2d3b65
 		< $@.tmp > $@ && rm -f $@.tmp
2d3b65
 
2d3b65
 gio_probes.lo: gio_probes.d
2d3b65
-	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
2d3b65
+	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC env CFLAGS="$(CFLAGS)" $(DTRACE) -G -s $< -o $@
2d3b65
 
2d3b65
 BUILT_SOURCES += gio_probes.h gio_probes.lo
2d3b65
 CLEANFILES += gio_probes.h gio_probes.h.tmp
2d3b65
diff --git a/glib/Makefile.am b/glib/Makefile.am
2d3b65
index 90d33d082..39163aa7f 100644
2d3b65
--- a/glib/Makefile.am
2d3b65
+++ b/glib/Makefile.am
2d3b65
@@ -386,7 +386,7 @@ glib_probes.h: glib_probes.d
2d3b65
 		< $@.tmp > $@ && rm -f $@.tmp
2d3b65
 
2d3b65
 glib_probes.lo: glib_probes.d
2d3b65
-	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
2d3b65
+	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC env CFLAGS="$(CFLAGS)" $(DTRACE) -G -s $< -o $@
2d3b65
 
2d3b65
 BUILT_SOURCES += glib_probes.h glib_probes.lo
2d3b65
 CLEANFILES += glib_probes.h glib_probes.h.tmp
2d3b65
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
2d3b65
index 4c28acdff..78748e96c 100644
2d3b65
--- a/gobject/Makefile.am
2d3b65
+++ b/gobject/Makefile.am
2d3b65
@@ -119,7 +119,7 @@ gobject_probes.h: gobject_probes.d
2d3b65
 		< $@.tmp > $@ && rm -f $@.tmp
2d3b65
 
2d3b65
 gobject_probes.lo: gobject_probes.d
2d3b65
-	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
2d3b65
+	$(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC env CFLAGS="$(CFLAGS)" $(DTRACE) -G -s $< -o $@
2d3b65
 
2d3b65
 BUILT_SOURCES += gobject_probes.h gobject_probes.lo
2d3b65
 CLEANFILES += gobject_probes.h
2d3b65
-- 
2d3b65
2.21.0
2d3b65