mirror of https://github.com/stella-emu/stella.git
Add '--enable-release' to configure script, which for now sets the Makefile to use LTO.
This commit is contained in:
parent
a73c92904f
commit
c165c9b159
5
Makefile
5
Makefile
|
@ -80,6 +80,11 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
ifdef RELEASE
|
||||
CXXFLAGS += -flto
|
||||
LDFLAGS += -flto
|
||||
endif
|
||||
|
||||
#######################################################################
|
||||
# Misc stuff - you should never have to edit this #
|
||||
#######################################################################
|
||||
|
|
|
@ -26,6 +26,7 @@ _build_sqlite=no
|
|||
_build_static=no
|
||||
_build_profile=no
|
||||
_build_debug=no
|
||||
_build_release=no
|
||||
|
||||
# more defaults
|
||||
_ranlib=ranlib
|
||||
|
@ -262,7 +263,9 @@ for ac_option in $@; do
|
|||
--enable-profile) _build_profile=yes ;;
|
||||
--disable-profile) _build_profile=no ;;
|
||||
--enable-debug) _build_debug=yes ;;
|
||||
--disable-debug) _build_debug=false ;;
|
||||
--disable-debug) _build_debug=no ;;
|
||||
--enable-release) _build_release=yes ;;
|
||||
--disable-release) _build_release=no ;;
|
||||
--with-sdl-prefix=*)
|
||||
arg=`echo $ac_option | cut -d '=' -f 2`
|
||||
_sdlpath="$arg:$arg/bin"
|
||||
|
@ -925,6 +928,10 @@ if test "$_build_debug" = no ; then
|
|||
_build_debug=
|
||||
fi
|
||||
|
||||
if test "$_build_release" = no ; then
|
||||
_build_release=
|
||||
fi
|
||||
|
||||
echo "Creating config.mak"
|
||||
cat > config.mak << EOF
|
||||
# -------- Generated by configure -----------
|
||||
|
@ -958,6 +965,7 @@ DOCDIR := $_docdir
|
|||
DATADIR := $_datadir
|
||||
PROFILE := $_build_profile
|
||||
DEBUG := $_build_debug
|
||||
RELEASE := $_build_release
|
||||
|
||||
$_make_def_HAVE_GCC
|
||||
$_make_def_HAVE_CLANG
|
||||
|
|
|
@ -20,7 +20,7 @@ endif
|
|||
|
||||
config.status: configure
|
||||
dh_testdir
|
||||
CXXFLAGS="$(CXXFLAGS)" ./configure --prefix=/usr
|
||||
CXXFLAGS="$(CXXFLAGS)" ./configure --prefix=/usr --enable-release
|
||||
|
||||
build: build-stamp
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ on your PC.
|
|||
|
||||
%build
|
||||
export CXXFLAGS=$RPM_OPT_FLAGS
|
||||
%configure \
|
||||
%configure --enable-release \
|
||||
%if %enable_sound
|
||||
--enable-sound \
|
||||
%else
|
||||
|
|
Loading…
Reference in New Issue