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"