diff --git a/audio/mkcue/mkcue.SlackBuild b/audio/mkcue/mkcue.SlackBuild index 346f5092fe..c9d6292cac 100644 --- a/audio/mkcue/mkcue.SlackBuild +++ b/audio/mkcue/mkcue.SlackBuild @@ -19,7 +19,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mkcue -VERSION=${VERSION:-1.4} +VERSION=${VERSION:-1.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -76,9 +76,10 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; patch -p1 < $CWD/fix_msf_offset.diff +patch -p1 < $CWD/use_ldflags.diff CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -std=gnu++98" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ diff --git a/audio/mkcue/mkcue.info b/audio/mkcue/mkcue.info index f9705f1859..69724ea218 100644 --- a/audio/mkcue/mkcue.info +++ b/audio/mkcue/mkcue.info @@ -1,5 +1,5 @@ PRGNAM="mkcue" -VERSION="1.4" +VERSION="1.7" HOMEPAGE="https://packages.debian.org/sid/mkcue" DOWNLOAD="http://httpredir.debian.org/debian/pool/main/m/mkcue/mkcue_1.orig.tar.gz" MD5SUM="de082e40baf042e23246d54d28cbcdcc" diff --git a/audio/mkcue/use_ldflags.diff b/audio/mkcue/use_ldflags.diff new file mode 100644 index 0000000000..e5fb4f8287 --- /dev/null +++ b/audio/mkcue/use_ldflags.diff @@ -0,0 +1,17 @@ +Description: ensure use of Debian $LDFLAGS + Ensure use of Debian $LDFLAGS, so that hardening options get used. +Author: Moray Allan +Last-Update: 2016-03-17 +Index: GNUmakefile.in +=================================================================== +--- mkcue-1.orig/GNUmakefile.in ++++ mkcue-1/GNUmakefile.in +@@ -54,7 +54,7 @@ INSTALL_SCRIPT= ${INSTALL_PROGRAM} + all: mkcue + + mkcue: mkcue.o mb.o +- ${CXX} -o $@ mkcue.o mb.o ++ ${CXX} -o $@ mkcue.o mb.o ${LDFLAGS} + + clean: + rm -f mkcue *.o