Blame SOURCES/1000-gtk-Makefile.am-add-PIE-flags-to-libspice-client-gli.patch

18559f
From 9788af437a99cb2600aeae6e313a43efb2ceb466 Mon Sep 17 00:00:00 2001
18559f
From: Alon Levy <alevy@redhat.com>
18559f
Date: Wed, 6 May 2015 09:04:02 -0400
18559f
Subject: [PATCH] gtk/Makefile.am: add PIE flags to libspice-client-glib
18559f
18559f
Also to gtk and controller lib
18559f
18559f
Signed-off-by: Pavel Grunt <pgrunt@redhat.com>
18559f
---
18559f
 src/Makefile.am            | 7 +++++++
18559f
 src/Makefile.in            | 7 +++++++
18559f
 src/controller/Makefile.am | 2 ++
18559f
 src/controller/Makefile.in | 2 ++
18559f
 4 files changed, 18 insertions(+)
18559f
18559f
diff --git a/src/Makefile.am b/src/Makefile.am
18559f
index 78953dd..688a7e8 100644
18559f
--- a/src/Makefile.am
18559f
+++ b/src/Makefile.am
18559f
@@ -115,6 +115,7 @@ SPICE_GTK_LDFLAGS_COMMON =		\
18559f
 	-version-info 5:0:0		\
18559f
 	-no-undefined			\
18559f
 	$(GTK_SYMBOLS_LDFLAGS)		\
18559f
+	$(PIE_LDFLAGS)			\
18559f
 	$(NULL)
18559f
 
18559f
 SPICE_GTK_LIBADD_COMMON =		\
18559f
@@ -161,6 +162,7 @@ endif
18559f
 if WITH_GTK
18559f
 EXTRA_libspice_client_gtk_3_0_la_DEPENDENCIES = $(GTK_SYMBOLS_FILE)
18559f
 libspice_client_gtk_3_0_la_LDFLAGS = $(SPICE_GTK_LDFLAGS_COMMON)
18559f
+libspice_client_gtk_3_0_la_CPPFLAGS = $(PIE_CFLAGS)
18559f
 libspice_client_gtk_3_0_la_LIBADD = $(SPICE_GTK_LIBADD_COMMON)
18559f
 libspice_client_gtk_3_0_la_SOURCES = $(SPICE_GTK_SOURCES_COMMON)
18559f
 nodist_libspice_client_gtk_3_0_la_SOURCES = $(nodist_SPICE_GTK_SOURCES_COMMON)
18559f
@@ -185,6 +187,11 @@ libspice_client_glib_2_0_la_LDFLAGS =	\
18559f
 	-version-info 14:0:6		\
18559f
 	-no-undefined			\
18559f
 	$(GLIB_SYMBOLS_LDFLAGS)		\
18559f
+	$(PIE_LDFLAGS)			\
18559f
+	$(NULL)
18559f
+
18559f
+libspice_client_glib_2_0_la_CPPFLAGS =	\
18559f
+	$(PIE_CFLAGS)			\
18559f
 	$(NULL)
18559f
 
18559f
 libspice_client_glib_2_0_la_LIBADD =					\
18559f
diff --git a/src/Makefile.in b/src/Makefile.in
18559f
index 2ea0804..a5e3a37 100644
18559f
--- a/src/Makefile.in
18559f
+++ b/src/Makefile.in
18559f
@@ -790,6 +790,7 @@ SPICE_GTK_LDFLAGS_COMMON = \
18559f
 	-version-info 5:0:0		\
18559f
 	-no-undefined			\
18559f
 	$(GTK_SYMBOLS_LDFLAGS)		\
18559f
+	$(PIE_LDFLAGS)			\
18559f
 	$(NULL)
18559f
 
18559f
 SPICE_GTK_LIBADD_COMMON = \
18559f
@@ -815,6 +816,7 @@ nodist_SPICE_GTK_SOURCES_COMMON = \
18559f
 
18559f
 @WITH_GTK_TRUE@EXTRA_libspice_client_gtk_3_0_la_DEPENDENCIES = $(GTK_SYMBOLS_FILE)
18559f
 @WITH_GTK_TRUE@libspice_client_gtk_3_0_la_LDFLAGS = $(SPICE_GTK_LDFLAGS_COMMON)
18559f
+@WITH_GTK_TRUE@libspice_client_gtk_3_0_la_CPPFLAGS = $(PIE_CFLAGS)
18559f
 @WITH_GTK_TRUE@libspice_client_gtk_3_0_la_LIBADD = $(SPICE_GTK_LIBADD_COMMON)
18559f
 @WITH_GTK_TRUE@libspice_client_gtk_3_0_la_SOURCES = $(SPICE_GTK_SOURCES_COMMON)
18559f
 @WITH_GTK_TRUE@nodist_libspice_client_gtk_3_0_la_SOURCES = $(nodist_SPICE_GTK_SOURCES_COMMON)
18559f
@@ -836,6 +838,11 @@ libspice_client_glib_2_0_la_LDFLAGS = \
18559f
 	-version-info 14:0:6		\
18559f
 	-no-undefined			\
18559f
 	$(GLIB_SYMBOLS_LDFLAGS)		\
18559f
+	$(PIE_LDFLAGS)			\
18559f
+	$(NULL)
18559f
+
18559f
+libspice_client_glib_2_0_la_CPPFLAGS =	\
18559f
+	$(PIE_CFLAGS)			\
18559f
 	$(NULL)
18559f
 
18559f
 libspice_client_glib_2_0_la_LIBADD =  \
18559f
diff --git a/src/controller/Makefile.am b/src/controller/Makefile.am
18559f
index fb56986..71dd2bd 100644
18559f
--- a/src/controller/Makefile.am
18559f
+++ b/src/controller/Makefile.am
18559f
@@ -4,6 +4,7 @@ AM_CPPFLAGS =					\
18559f
 	-DG_LOG_DOMAIN=\"GSpiceController\"	\
18559f
 	$(GIO_CFLAGS)				\
18559f
 	$(COMMON_CFLAGS)			\
18559f
+	$(PIE_CFLAGS)				\
18559f
 	-Wno-deprecated-declarations		\
18559f
 	$(NULL)
18559f
 
18559f
@@ -11,6 +12,7 @@ AM_CPPFLAGS =					\
18559f
 AM_LDFLAGS =					\
18559f
 	-no-undefined				\
18559f
 	$(GIO_LIBS)				\
18559f
+	$(PIE_LDFLAGS)				\
18559f
 	$(NULL)
18559f
 
18559f
 AM_VALAFLAGS =							\
18559f
diff --git a/src/controller/Makefile.in b/src/controller/Makefile.in
18559f
index 03e67a4..32c1d44 100644
18559f
--- a/src/controller/Makefile.in
18559f
+++ b/src/controller/Makefile.in
18559f
@@ -495,6 +495,7 @@ AM_CPPFLAGS = \
18559f
 	-DG_LOG_DOMAIN=\"GSpiceController\"	\
18559f
 	$(GIO_CFLAGS)				\
18559f
 	$(COMMON_CFLAGS)			\
18559f
+        $(PIE_CFLAGS)                           \
18559f
 	-Wno-deprecated-declarations		\
18559f
 	$(NULL)
18559f
 
18559f
@@ -503,6 +504,7 @@ AM_CPPFLAGS = \
18559f
 AM_LDFLAGS = \
18559f
 	-no-undefined				\
18559f
 	$(GIO_LIBS)				\
18559f
+        $(PIE_LDFLAGS)                          \
18559f
 	$(NULL)
18559f
 
18559f
 AM_VALAFLAGS = \
18559f
-- 
18559f
2.13.0
18559f