mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-18 18:05:21 +00:00
- cleaned up removal of '-g' for gcc
This commit is contained in:
parent
da9f22d930
commit
4d03a57251
@ -601,15 +601,14 @@ fi
|
||||
|
||||
dnl Remove the "-g" option if set for GCC.
|
||||
if [[ "x$HAVE_GCC27" = "xyes" ]]; then
|
||||
dnl gb-- Probably not the cleanest way to take
|
||||
CFLAGS=`echo $CFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'`
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -g / /;s/^-g / /;s/ -g$/ /;s/^-g$//'`
|
||||
CFLAGS=`echo $CFLAGS | sed -e 's/-g//g'`
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'`
|
||||
fi
|
||||
|
||||
dnl Or if we have -Ofast
|
||||
if [[ "x$HAVE_OFAST" = "xyes" ]]; then
|
||||
CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'`
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/ -g$/ -Ofast/;s/^-g$/-Ofast/'`
|
||||
CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast"
|
||||
CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast"
|
||||
CXXFLAGS="-LANG:std $CXXFLAGS"
|
||||
LDFLAGS="$LDFLAGS -Ofast"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user