mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
Default changed to making release bins, for people who don't read
directions. Developers need to use --enable-debug to get an unoptimized binary.
This commit is contained in:
parent
dc42c03c5b
commit
6db71530c7
1 changed files with 9 additions and 9 deletions
18
configure.in
18
configure.in
|
@ -652,7 +652,7 @@ if test "x$globalconf" = "xauto" || test "x$globalconf" = "xyes" || \
|
|||
test "x$globalconf" = "xno"; then dnl yes/no sanity checks
|
||||
globalconf="$default_globalconf"
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(FS_GLOBALCFG, $globalconf)
|
||||
AC_DEFINE_UNQUOTED(FS_GLOBALCFG, "$globalconf")
|
||||
|
||||
AC_ARG_WITH(sharepath,
|
||||
[ --with-sharepath=DIR Use DIR for shared game data, defaults to
|
||||
|
@ -663,7 +663,7 @@ if test "x$sharepath" = "xauto" -o "x$sharepath" = "xyes" -o "x$sharepath" = "x"
|
|||
elif test "x$sharepath" = xno; then
|
||||
sharepath="."
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(FS_SHAREPATH, $sharepath)
|
||||
AC_DEFINE_UNQUOTED(FS_SHAREPATH, "$sharepath")
|
||||
|
||||
AC_ARG_WITH(userpath,
|
||||
[ --with-userpath=DIR Use DIR for unshared game data, defaults to
|
||||
|
@ -674,17 +674,17 @@ if test "x$userpath" = "xauto" -o "x$userpath" = "xyes" -o "x$userpath" = "x"; t
|
|||
elif test "x$userpath" = xno; then
|
||||
userpath="."
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(FS_USERPATH, $userpath)
|
||||
AC_DEFINE_UNQUOTED(FS_USERPATH, "$userpath")
|
||||
|
||||
dnl CFLAGS for release and devel versions
|
||||
AC_ARG_ENABLE(release,
|
||||
[ --enable-release compile release (with optimizations)],
|
||||
RELEASE=$enable_release
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug compile without optimizations (for development)],
|
||||
debug=$enable_debug
|
||||
)
|
||||
if test "x$RELEASE" = xyes; then
|
||||
CFLAGS="-O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
||||
if test "x$debug" != xyes; then
|
||||
if test "x$GCC" = xyes; then
|
||||
AC_MSG_CHECKING(for special release compiler settings)
|
||||
CFLAGS="-O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
||||
AC_MSG_CHECKING(for special compiler settings)
|
||||
case "${host}" in
|
||||
i?86-*-*)
|
||||
MORE_CFLAGS="-malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
|
|
Loading…
Reference in a new issue