mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
games/mednafen: Only set CLANGFLAGS on affected version of clang.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
This commit is contained in:
parent
52848f5cad
commit
61ea382b18
1 changed files with 7 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for mednafen
|
||||
|
||||
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
|
||||
|
@ -26,7 +25,7 @@
|
|||
|
||||
PRGNAM=mednafen
|
||||
VERSION=${VERSION:-0.9.38.7}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -71,8 +70,6 @@ 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 {} \;
|
||||
|
||||
CLANGFLAGS="-std=c++11"
|
||||
|
||||
##
|
||||
## Switched to clang as 14.1's version of gcc will compile mednafen,
|
||||
## but will not run mednafen, failing a compiler code generation
|
||||
|
@ -82,14 +79,14 @@ CLANGFLAGS="-std=c++11"
|
|||
## will both work, but seem to give a drop in performance
|
||||
## on some machines. Using "-std=c++11" works on stable
|
||||
## and current, and seems to be the best option at this point.
|
||||
## Current users (or anyone who has upgraded their compilers)
|
||||
## may remove the CXXFLAGS or run like so:
|
||||
##
|
||||
## export CLANGFLAGS=""; sh mednafen.SlackBuild
|
||||
##
|
||||
## Depending on your setup, this may work better in some situations.
|
||||
## But if you are on 14.1, you will need to keep those CLANGFLAGS. ;^)
|
||||
## Note that the CLANGFLAGS are only set if the user has
|
||||
## the affected version of llvm.
|
||||
##
|
||||
if [ "`clang --version | grep '3.3'`" ]; then
|
||||
CLANGFLAGS="-std=c++11"
|
||||
fi
|
||||
|
||||
CC=clang CXX=clang++ \
|
||||
CXXFLAGS+="$CLANGFLAGS" \
|
||||
./configure \
|
||||
|
|
Loading…
Reference in a new issue