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