[firebird/f19] set PIE compiler flags (bug #955274)

Philippe Makowski makowski at fedoraproject.org
Sat Apr 27 12:57:34 UTC 2013


commit 6b7897dc8da1fd42fc7b454308fdd276c819ee26
Author: Philippe Makowski <pmakowski at espelida.com>
Date:   Sat Apr 27 14:57:13 2013 +0200

    set PIE compiler flags (bug #955274)

 firebird-btyacc-fpie.patch |   11 +++++++++++
 firebird.spec              |   10 ++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/firebird-btyacc-fpie.patch b/firebird-btyacc-fpie.patch
new file mode 100644
index 0000000..e276c31
--- /dev/null
+++ b/firebird-btyacc-fpie.patch
@@ -0,0 +1,11 @@
+--- extern/btyacc/Makefile.ori	2013-03-19 09:38:04.000000000 +0100
++++ extern/btyacc/Makefile	2013-04-27 13:20:35.964379129 +0200
+@@ -12,7 +12,7 @@ HDRS	      = defs.h mstring.h
+ # across all of our supported compilers/platforms.
+ 
+ # Vanilla CFLAGS
+-CFLAGS=
++#CFLAGS=
+ 
+ # No LDFLAGS
+ #LDFLAGS=
diff --git a/firebird.spec b/firebird.spec
index c98373d..b1e709c 100644
--- a/firebird.spec
+++ b/firebird.spec
@@ -1,12 +1,12 @@
 %global pkgname Firebird-2.5.2.26539-0
 %global fbroot %{_libdir}/%{name}
 %global major 2.5.2
-
+%global _hardened_build 1
 
 Summary: SQL relational database management system
 Name:  firebird
 Version: 2.5.2.26539.0
-Release: 3%{?dist}
+Release: 4%{?dist}
 
 Group:  Applications/Databases
 License: Interbase
@@ -26,6 +26,8 @@ Source7: firebird-superserver.service
 Patch0: firebird-2.5.2-svn-CORE-3946.patch
 Patch1: firebird-2.5.2-svn-CORE-4058.patch
 
+Patch2: firebird-btyacc-fpie.patch
+
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bison
@@ -161,6 +163,7 @@ Multi-process, local client libraries for Firebird SQL RDBMS
 %setup -q -n %{pkgname}
 %patch0
 %patch1
+%patch2
 # convert intl character to UTF-8
 iconv -f ISO-8859-1 -t utf-8 -c ./doc/README.intl     -o ./doc/README.intl
 
@@ -517,6 +520,9 @@ fi
 
 
 %changelog
+* Thu Apr 25 2013 Philippe Makowski <makowski at fedoraproject.org>  2.5.2.26539.0-4
+- set PIE compiler flags (bug #955274)
+
 * Sun Mar 10 2013 Philippe Makowski <makowski at fedoraproject.org>  2.5.2.26539.0-3
 - added patch from upstream to fix Firebird CORE-4058 CVE-2013-2492
 


More information about the scm-commits mailing list