From 2498f992eeb8bb1639adc854bcfafb994c76db06 Mon Sep 17 00:00:00 2001 From: dillon_chen Date: Thu, 2 Mar 2023 19:51:53 +0800 Subject: [PATCH] add -fPIE fix build error (cherry picked from commit 95c5a9347688235fa7a19162df6229d7aeb1fee6) --- firebird.spec | 7 +++++-- honour-buildflags.patch | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/firebird.spec b/firebird.spec index d7a3c9e..708fc30 100644 --- a/firebird.spec +++ b/firebird.spec @@ -3,7 +3,7 @@ Name: firebird Version: %{ver}.%{rev} -Release: 1 +Release: 2 Summary: SQL relational database management system License: Interbase URL: http://www.firebirdsql.org/ @@ -205,8 +205,11 @@ systemd-tmpfiles --create %{_tmpfilesdir}/firebird.conf %exclude %{_docdir}/firebird/IPLicense.txt %changelog +* Thu Mar 2 2023 dillon chen - 3.0.10.33601-2 +- add -fPIE in honour-buildflags.patch + * Thu Sep 1 2022 Funda Wang - 3.0.10.33601-1 -* New version 3.0.10 +- New version 3.0.10 * Tue Aug 30 2022 dillon chen - 3.0.3.32900-10 - put correct source as /usr/sbin/fb_config diff --git a/honour-buildflags.patch b/honour-buildflags.patch index fb3487b..14016ef 100644 --- a/honour-buildflags.patch +++ b/honour-buildflags.patch @@ -13,7 +13,7 @@ Author: Damyan Ivanov $(INCLUDE_DEST)/ibase.h: $(SRC_IBASE_ExtraFiles) - $(STATICEXE_LINK) -o $(MAKE_HEADER_Bin) $(MAKE_HEADER_Src) -+ $(STATICEXE_LINK) $(EXE_LINK_OPTIONS) $(LINK_OPTS) $(CPPFLAGS) -o $(MAKE_HEADER_Bin) $(MAKE_HEADER_Src) ++ $(STATICEXE_LINK) $(EXE_LINK_OPTIONS) $(LINK_OPTS) $(CPPFLAGS) -o $(MAKE_HEADER_Bin) -fPIE $(MAKE_HEADER_Src) $(CP) $^ . $(MAKE_HEADER_Bin) $@ $(RM) -f ibase.h -- Gitee