Accepting request 885337 from home:wfrisch:branches:Printing

Hardening: compile with PIC, link as PIE

OBS-URL: https://build.opensuse.org/request/show/885337
OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=143
This commit is contained in:
Johannes Meixner 2021-04-15 08:05:17 +00:00 committed by Git OBS Bridge
parent a660ee5ba6
commit 15068e1197
4 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 14 11:57:25 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Hardening: compile with PIC, link as PIE
-------------------------------------------------------------------
Fri Mar 26 13:42:05 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -215,8 +215,9 @@ rm -rf lcms2art
# Derive build timestamp from latest changelog entry
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
# Set our preferred architecture-specific flags for the compiler and linker:
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
export CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
export LDFLAGS="-pie"
autoreconf -fi
# --docdir=%%{_defaultdocdir}/%%{name} does not work therefore it is not used.
# --disable-cups and --without-pdftoraster

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 14 11:56:22 UTC 2021 - Wolfgang Frisch <wolfgang.frisch@suse.com>
- Hardening: compile with PIC, link as PIE
-------------------------------------------------------------------
Tue Oct 20 16:38:24 CEST 2020 - Ismail Dönmez <idonmez@suse.com>

View File

@ -356,8 +356,9 @@ rm -rf lcms2art
# Derive build timestamp from latest changelog entry
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
# Set our preferred architecture-specific flags for the compiler and linker:
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
export CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
export LDFLAGS="-pie"
autoreconf -fi
# --docdir=%%{_defaultdocdir}/%%{name} does not work therefore it is not used.
# --enable-cups but no longer --with-pdftoraster --enable-dbus --with-install-cups because