From 860beda65e3644059f40d4a39001edeb0cca52a03c1dd5803af013346a285e97 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 16 May 2018 22:48:12 +0000 Subject: [PATCH] - Build cdrecord/cdda2wav/readcd with PIE link mode. OBS-URL: https://build.opensuse.org/package/show/utilities/schily?expand=0&rev=18 --- schily.changes | 1 + schily.spec | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/schily.changes b/schily.changes index 6838a2d..df24bd9 100644 --- a/schily.changes +++ b/schily.changes @@ -2,6 +2,7 @@ Wed May 16 22:12:34 UTC 2018 - jengelh@inai.de - Add _FILE_OFFSET_BITS=64 for the psmake build procedure. +- Build cdrecord/cdda2wav/readcd with PIE link mode. ------------------------------------------------------------------- Wed May 16 16:38:42 UTC 2018 - jengelh@inai.de diff --git a/schily.spec b/schily.spec index 043f63b..2206959 100644 --- a/schily.spec +++ b/schily.spec @@ -419,15 +419,12 @@ popd # # To enable verbosity, use with CC=cc LDCC=cc DYNLD=cc. # -# Note that specifying -fPIE/-pie here conflicts with the generation -# of shared objects, which is why we build those separately -# in schily-libs.spec instead. -# # Not fully parallel safe, so stick to default. # -gmake GMAKE_NOWARN=true RUNPATH="" LINKMODE=dynamic \ - COPTOPT="%optflags -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -fno-omit-frame-pointer -fPIC -finput-charset=ISO-8859-1" \ - LDOPTX="" RUNPATH="" +mycf="%optflags -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing -fno-omit-frame-pointer -fPIC -finput-charset=ISO-8859-1" +gmake RUNPATH="" LINKMODE=dynamic COPTOPT="$mycf" LDOPTX="" +rm -fv cdrecord/OBJ/*/cdrecord cdda2wav/OBJ/*/cdda2wav readcd/OBJ/*/readcd +gmake RUNPATH="" LINKMODE=dynamic COPTOPT="$mycf -fPIE" LDOPTX=-pie %install b="%buildroot"