From 3f7af4e323d1809699a0e8a919167a3fd4d92285 Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Sat, 13 Apr 2019 00:45:07 +0700 Subject: games/mednafen: Update script. Signed-off-by: Willy Sudiarto Raharjo --- games/mednafen/mednafen.SlackBuild | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'games') diff --git a/games/mednafen/mednafen.SlackBuild b/games/mednafen/mednafen.SlackBuild index 65e7e717c8..59d1929e47 100644 --- a/games/mednafen/mednafen.SlackBuild +++ b/games/mednafen/mednafen.SlackBuild @@ -70,6 +70,32 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# sanitize build flags +sed \ + -e '/-fno-fast-math/d' \ + -e '/-fno-unsafe-math-optimizations/d' \ + -e '/-fno-aggressive-loop-optimizations/d' \ + -e '/-fno-ipa-icf/d' \ + -e '/-fno-printf-return-value/d' \ + -e '/-fno-pic/d' \ + -e '/-fno-pie/d' \ + -e '/-fno-PIC/d' \ + -e '/-fno-PIE/d' \ + -e '/-nopie/d' \ + -e '/-no-pie/d' \ + -e '/-fno-stack-protector/d' \ + -e '/-fno-stack-protector-all/d' \ + -e '/-fno-stack-protector-strong/d' \ + -e '/-mtune=haswell/d' \ + -i configure.ac + +# This warning is not true at least on x86_64 +sed -e '/Compiling with position-independent code generation enabled is not recommended, for performance reasons/d' \ + -i src/types.h + +autoreconf + + #--with-external-lzo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ -- cgit v1.2.3