freeswitch: taking out -Ox cflags and have them replaced with -O0

we dont want to optimize out symbols for debugging
This commit is contained in:
James Zhang 2012-03-20 11:56:29 -04:00
parent f1d80cd25d
commit e560ddccde
33 changed files with 105 additions and 105 deletions

View File

@ -10,7 +10,7 @@ AC_ARG_ENABLE(portable-binary, [AC_HELP_STRING([--enable-portable-binary], [disa
if test "$ac_test_CFLAGS" != "set"; then
CFLAGS=""
case $ax_cv_c_compiler_vendor in
dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
dec) CFLAGS="-newc -w0 -O0 -ansi_alias -ansi_args -fp_reorder -tune host"
if test "x$acx_maxopt_portable" = xno; then
CFLAGS="$CFLAGS -arch host"
fi;;
@ -31,13 +31,13 @@ if test "$ac_test_CFLAGS" != "set"; then
xlc_opt="-qtune=auto"
fi
AX_CHECK_COMPILER_FLAGS($xlc_opt,
CFLAGS="-O3 -qansialias -w $xlc_opt",
[CFLAGS="-O3 -qansialias -w"
CFLAGS="-O0 -qansialias -w $xlc_opt",
[CFLAGS="-O0 -qansialias -w"
echo "******************************************************"
echo "* You seem to have the IBM C compiler. It is *"
echo "* recommended for best performance that you use: *"
echo "* *"
echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
echo "* CFLAGS=-O0 -qarch=xxx -qtune=xxx -qansialias -w *"
echo "* ^^^ ^^^ *"
echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
echo "* CPU you have. (Set the CFLAGS environment var. *"
@ -45,7 +45,7 @@ if test "$ac_test_CFLAGS" != "set"; then
echo "******************************************************"])
;;
intel) CFLAGS="-O3 -ansi_alias"
intel) CFLAGS="-O0 -ansi_alias"
if test "x$acx_maxopt_portable" = xno; then
icc_archflag=unknown
icc_flags=""
@ -78,7 +78,7 @@ if test "$ac_test_CFLAGS" != "set"; then
gnu)
# default optimization flags for gcc on all systems
CFLAGS="-O3 -fomit-frame-pointer"
CFLAGS="-O0 -fomit-frame-pointer"
# -malign-double for x86 systems
AX_CHECK_COMPILER_FLAGS(-malign-double, CFLAGS="$CFLAGS -malign-double")
@ -99,10 +99,10 @@ if test "$ac_test_CFLAGS" != "set"; then
echo "********************************************************"
echo "* WARNING: Don't know the best CFLAGS for this system *"
echo "* Use ./configure CFLAGS=... to specify your own flags *"
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
echo "* (otherwise, a default of CFLAGS=-O0 will be used) *"
echo "********************************************************"
echo ""
CFLAGS="-O3"
CFLAGS="-O0"
fi
AX_CHECK_COMPILER_FLAGS($CFLAGS, [], [

View File

@ -161,7 +161,7 @@ endif
# -O4,p level 4 optimizations, optimize for speed
ifeq "$(RELEASE)" "optimized"
CFLAGS += -O4,p
CFLAGS += -O0,p
endif
# -prefix apr_arch_pre_nw.h #include pre_nw.h for all files

View File

@ -326,7 +326,7 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
;;
*convex-v11*)
APR_ADDTO(CPPFLAGS, [-DCONVEXOS11])
APR_SETIFNULL(CFLAGS, [-O1])
APR_SETIFNULL(CFLAGS, [-O0])
APR_ADDTO(CFLAGS, [-ext])
;;
i860-intel-osf1)

View File

@ -239,7 +239,7 @@ nl='
'
echo "${nl}Check for compiler flags..."
dnl AC_PROG_CC sets -g in CFLAGS (and -O2 for gcc) by default.
dnl AC_PROG_CC sets -g in CFLAGS (and -O0 for gcc) by default.
dnl On OS/390 this causes the compiler to insert extra debugger
dnl hook instructions. That's fine for debug/maintainer builds, not fine
dnl otherwise.
@ -287,8 +287,8 @@ AC_ARG_ENABLE(profile,[ --enable-profile Turn on profiling for the build
APR_ADDTO(CFLAGS, -pg)
APR_REMOVEFROM(CFLAGS, -g)
if test "$host" = "i586-pc-beos"; then
APR_REMOVEFROM(CFLAGS, -O2)
APR_ADDTO(CFLAGS, -O1)
APR_REMOVEFROM(CFLAGS, -O0)
APR_ADDTO(CFLAGS, -O0)
APR_ADDTO(LDFLAGS, -p)
fi
fi
@ -340,7 +340,7 @@ AC_ARG_ENABLE(pool-debug,
if test "$host" = "i586-pc-beos"; then
AC_ARG_ENABLE(malloc-debug,[ --enable-malloc-debug Switch on malloc_debug for BeOS],
APR_REMOVEFROM(CFLAGS, -O2)
APR_REMOVEFROM(CFLAGS, -O0)
APR_ADDTO(CPPFLAGS, -fcheck-memory-usage -D_KERNEL_MODE)
) dnl
fi

View File

@ -71,9 +71,9 @@ then
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
CC=${CC-${host_alias}-gcc}
CFLAGS=${CFLAGS-"-g -O2"}
CFLAGS=${CFLAGS-"-g -O0"}
CXX=${CXX-${host_alias}-c++}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O0"}
else
# Set reasonable default values for some tools even if not Canadian.
# Of course, these are different reasonable default values, originally
@ -108,8 +108,8 @@ else
fi
CXX=${CXX-"c++"}
CFLAGS=${CFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
CFLAGS=${CFLAGS-"-g -O0"}
CXXFLAGS=${CXXFLAGS-"-g -O0"}
fi
AC_DEFUN([REMOVE_FROM_VAR],[

View File

@ -21,7 +21,7 @@ CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
CFLAGS += -O0
endif
include /usr/share/dpatch/dpatch.make

View File

@ -35,7 +35,7 @@ RM = del
LIB = tlib
IMPLIB = implib
CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
CXXFLAGS = -q -5 -O0 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
LIBFLAGS = /C /P32
LDFLAGS = -q -lq -laa -tWD

View File

@ -26,7 +26,7 @@ STRIP = strip -g
## Nothing more to do below this line!
INCLUDES = -I. -I../include
CFLAGS = -g -O2 -DMINGW32 -DBUILDING_LIBCURL -DHAVE_LONGLONG
CFLAGS = -g -O0 -DMINGW32 -DBUILDING_LIBCURL -DHAVE_LONGLONG
ifdef SSL
INCLUDES += -I"$(OPENSSL_PATH)/outinc" -I"$(OPENSSL_PATH)/outinc/openssl"
CFLAGS += -DUSE_SSLEAY -DUSE_OPENSSL -DHAVE_OPENSSL_ENGINE_H -DHAVE_OPENSSL_PKCS12_H \

View File

@ -32,7 +32,7 @@ CP = copy
RM = del
LIB = tlib
CXXFLAGS = -q -5 -O2 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
CXXFLAGS = -q -5 -O0 -w-aus -w-ccc -w-csu -w-par -w-pia -w-rch -w-inl -w-ngu -w-pro -tWM
LDFLAGS = -q -lq -lap
INCDIRS = -I.;../include;../lib

View File

@ -8,7 +8,7 @@ ATCPSDKI= /GG/netinclude
CC = m68k-amigaos-gcc
CFLAGS = -I$(ATCPSDKI) -m68020-60 -O2 -msoft-float -noixemul -g -I. -I../include -W -Wall
CFLAGS = -I$(ATCPSDKI) -m68020-60 -O0 -msoft-float -noixemul -g -I. -I../include -W -Wall
LIBS = ../lib/libcurl.a -lssl -lcrypto -lz
MANPAGE = ../docs/curl.1
README = ../docs/MANUAL

View File

@ -62,7 +62,7 @@ USE_CPLUS=
USE_IPV6=
USE_MDUPDATE=
_MACOSX_DEPLOYMENT_TARGET=
_OPTIMIZE_FLAGS=-O
_OPTIMIZE_FLAGS=-O0
_DEBUG_FLAGS=-g
MOZ_DEBUG=1
MOZ_OPTIMIZE=
@ -176,7 +176,7 @@ AC_ARG_WITH(mozilla,
fi])
AC_ARG_ENABLE(optimize,
[ --enable-optimize(=val) Enable code optimizations (val, ie. -O2) ],
[ --enable-optimize(=val) Enable code optimizations (val, ie. -O0) ],
[ if test "$enableval" != "no"; then
MOZ_OPTIMIZE=1
if test -n "$enableval" && test "$enableval" != "yes"; then
@ -887,7 +887,7 @@ case "$target" in
RESOLVE_LINK_SYMBOLS=1
case "${target_cpu}" in
i*86)
_OPTIMIZE_FLAGS=-O2
_OPTIMIZE_FLAGS=-O0
_DEBUG_FLAGS='-gdwarf-2 -O0'
MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@'
AC_CHECK_LIB(bind, gethostbyaddr, [OS_LIBS="$OS_LIBS -lbind -lsocket"])
@ -897,7 +897,7 @@ case "$target" in
CCC=mwcc
LD=mwld
DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o'
_OPTIMIZE_FLAGS=-O2
_OPTIMIZE_FLAGS=-O0
_DEBUG_FLAGS='-g -O0'
;;
esac
@ -1115,7 +1115,7 @@ tools are selected during the Xcode/Developer Tools installation.])
AC_DEFINE(_DGUX_SOURCE)
AC_DEFINE(_POSIX4A_DRAFT6_SOURCE)
DSO_LDOPTS=-G
_OPTIMIZE_FLAGS=-O2
_OPTIMIZE_FLAGS=-O0
_DEBUG_FLAGS=
MDCPUCFG_H=_dgux.cfg
PR_MD_CSRCS=dgux.c
@ -1334,7 +1334,7 @@ tools are selected during the Xcode/Developer Tools installation.])
dnl
AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)'
CFLAGS="$CFLAGS -Wall -Wno-format"
_OPTIMIZE_FLAGS="-O6"
_OPTIMIZE_FLAGS="-O0"
else
if test -n "$USE_N32"; then
AS='as -D_ASM $(INCLUDES) -n32'
@ -1408,7 +1408,7 @@ tools are selected during the Xcode/Developer Tools installation.])
MKSHLIB='$(CC) $(DSO_LDOPTS) $(OS_LDFLAGS) -o $@'
DSO_CFLAGS=-fPIC
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
_OPTIMIZE_FLAGS=-O2
_OPTIMIZE_FLAGS=-O0
_DEBUG_FLAGS="-g" # most people on linux use gcc/gdb, and that
# combo is not yet good at debugging inlined
# functions (even when using DWARF2 as the
@ -1485,7 +1485,7 @@ tools are selected during the Xcode/Developer Tools installation.])
CFLAGS="$CFLAGS -W3 -nologo -GF -Gy"
DLLFLAGS='-OUT:"$@"'
_DEBUG_FLAGS=-Z7
_OPTIMIZE_FLAGS=-O2
_OPTIMIZE_FLAGS=-O0
if test -z "$MOZ_OPTIMIZE"; then
CFLAGS="$CFLAGS -Od"
fi
@ -1724,7 +1724,7 @@ mips-sony-newsos*)
DSO_CFLAGS=-fPIC
DSO_LDOPTS=-shared
OS_LIBS="$OS_LIBS -lsocket"
_OPTIMIZE_FLAGS="-O1"
_OPTIMIZE_FLAGS="-O0"
_DEBUG_FLAGS="-gstabs"
;;
@ -2082,7 +2082,7 @@ mips-sony-newsos*)
DSO_CFLAGS=
DSO_LDOPTS='-Zomf -Zdll -Zmap'
LDFLAGS='-Zmap'
_OPTIMIZE_FLAGS="-O2 -s"
_OPTIMIZE_FLAGS="-O0 -s"
_DEBUG_FLAGS="-g -fno-inline"
if test -n "$MOZ_OPTIMIZE"; then
DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA"

View File

@ -64,9 +64,9 @@ then
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
CC=${CC-${host_alias}-gcc}
CFLAGS=${CFLAGS-"-g -O2"}
CFLAGS=${CFLAGS-"-g -O0"}
CXX=${CXX-${host_alias}-c++}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O0"}
else
# Set reasonable default values for some tools even if not Canadian.
# Of course, these are different reasonable default values, originally
@ -101,8 +101,8 @@ else
fi
CXX=${CXX-"c++"}
CFLAGS=${CFLAGS-"-g -O2"}
CXXFLAGS=${CXXFLAGS-"-g -O2"}
CFLAGS=${CFLAGS-"-g -O0"}
CXXFLAGS=${CXXFLAGS-"-g -O0"}
fi
AC_DEFUN([REMOVE_FROM_VAR],[

View File

@ -59,7 +59,7 @@ the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
CC=c89 CFLAGS=-O0 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure

View File

@ -26,7 +26,7 @@ CFLAGS="$CFLAGS $CONFIGURE_CFLAGS"
CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS"
LDFLAGS="$LDFLAGS $CONFIGURE_LDFLAGS"
# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
# The default CFLAGS and CXXFLAGS in Autoconf are "-g -O0" for gcc and just
# "-g" for any other compiler. There doesn't seem to be a standard way of
# getting rid of the -g (which I don't think is needed for a production
# library). This fudge seems to achieve the necessary. First, we remember the
@ -44,9 +44,9 @@ AC_PROG_CXX
if test "x$remember_set_CFLAGS" = "x"
then
if test "$CFLAGS" = "-g -O2"
if test "$CFLAGS" = "-g -O0"
then
CFLAGS="-O2"
CFLAGS="-O0"
elif test "$CFLAGS" = "-g"
then
CFLAGS=""
@ -55,9 +55,9 @@ fi
if test "x$remember_set_CXXFLAGS" = "x"
then
if test "$CXXFLAGS" = "-g -O2"
if test "$CXXFLAGS" = "-g -O0"
then
CXXFLAGS="-O2"
CXXFLAGS="-O0"
elif test "$CXXFLAGS" = "-g"
then
CXXFLAGS=""

View File

@ -11,7 +11,7 @@ top_srcdir = .
srcdir = .
top_builddir = .
OPT_LEVEL := -O2
OPT_LEVEL := -O0
PREFIX = /usr/local
prefix = $(PREFIX)
exec_prefix = ${prefix}

View File

@ -39,7 +39,7 @@ if Platform in Posix:
baseLinkFlags = threadCFlags = "-pthread"
baseCxxFlags = baseCFlags = "-Wall -pedantic -pipe " + threadCFlags
debugCxxFlags = debugCFlags = "-g"
optCxxFlags = optCFlags = "-O2"
optCxxFlags = optCFlags = "-O0"
env["CCFLAGS"] = baseCFlags.split()
env["CXXFLAGS"] = baseCxxFlags.split()
env["LINKFLAGS"] = baseLinkFlags.split()

View File

@ -1263,7 +1263,7 @@ PORTAUDIO="$PACPP_ROOT/../portaudio"
PACPP_INC="$PACPP_ROOT/include"
INCLUDES="-I$PACPP_INC -I$PORTAUDIO -I$PORTAUDIO/pa_common"
CFLAGS="-g -O2 -Wall -ansi -pedantic $INCLUDES"
CFLAGS="-g -O0 -Wall -ansi -pedantic $INCLUDES"
CXXFLAGS="$CFLAGS"
PALIBDIR="$PORTAUDIO/lib"
@ -1908,13 +1908,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -O0"
else
CFLAGS="-g"
CFLAGS="-g -O0"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
CFLAGS="-O0"
else
CFLAGS=
fi
@ -2350,13 +2350,13 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -O0"
else
CXXFLAGS="-g"
CXXFLAGS="-g -O0"
fi
else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
CXXFLAGS="-O0"
else
CXXFLAGS=
fi

View File

@ -24,7 +24,7 @@ PORTAUDIO="$PACPP_ROOT/../portaudio"
PACPP_INC="$PACPP_ROOT/include"
INCLUDES="-I$PACPP_INC -I$PORTAUDIO -I$PORTAUDIO/pa_common"
CFLAGS="-g -O2 -Wall -ansi -pedantic $INCLUDES"
CFLAGS="-g -O0 -Wall -ansi -pedantic $INCLUDES"
CXXFLAGS="$CFLAGS"
PALIBDIR="$PORTAUDIO/lib"

View File

@ -25,7 +25,7 @@ PORTAUDIO_ROOT="../.."
# Various other variables and flags
DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
CFLAGS=${CFLAGS-"-g -O0 -Wall -ansi -pedantic"}
CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
LT_VERSION_INFO="lt_current:lt_revision:lt_age"

View File

@ -7,12 +7,12 @@ WINDRES = windres.exe
RES =
OBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
LINKOBJ = ./pa_skeleton.o ./pa_stream.o ./pa_trace.o ./pa_allocation.o ./pa_converters.o ./pa_cpuload.o ./pa_dither.o ./pa_front.o ./pa_process.o ./pa_asio.o ./pa_win_util.o ./pa_win_hostapis.o ./pa_win_ds.o ./dsound_wrapper.o ./pa_win_wmme.o ./iasiothiscallresolver.o $(RES)
LIBS = -L"C:/Dev-CPP/lib" -fmessage-length=0 -O3 -s
LIBS = -L"C:/Dev-CPP/lib" -fmessage-length=0 -O0 -s
INCS = -I"C:/Dev-CPP/include" -I"../../../asiosdk2" -I"../../../asiosdk2/common" -I"../../../asiosdk2/host" -I"../../../asiosdk2/host/pc" -I"../../pa_common"
CXXINCS = -I"C:/Dev-CPP/include/c++" -I"C:/Dev-CPP/include/c++/mingw32" -I"C:/Dev-CPP/include/c++/backward" -I"C:/Dev-CPP/include" -I"../../../asiosdk2" -I"../../../asiosdk2/common" -I"../../../asiosdk2/host" -I"../../../asiosdk2/host/pc" -I"../../pa_common"
BIN = portaudio-static.a
CXXFLAGS = $(CXXINCS)-O3 -fmessage-length=0 -Wall
CFLAGS = $(INCS)-O3 -fmessage-length=0 -Wall
CXXFLAGS = $(CXXINCS)-O0 -fmessage-length=0 -Wall
CFLAGS = $(INCS)-O0 -fmessage-length=0 -Wall
.PHONY: all all-before all-after clean clean-custom

View File

@ -130,7 +130,7 @@ AC_SUBST(CXXFLAGS)
AC_SUBST(NASM)
AC_SUBST(NASMOPT)
CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
CFLAGS=${CFLAGS:-"-g -O0 -Wall -pedantic -pipe -fPIC"}
if [[ $ac_cv_c_bigendian = "yes" ]] ; then
CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"

View File

@ -19,7 +19,7 @@ TOP = ../sqlite
#### C Compiler and options for use in building executables that
# will run on the platform that is doing the build.
#
BCC = gcc -g -O2
BCC = gcc -g -O0
#BCC = /opt/ancic/bin/c89 -0
#### If the target operating system supports the "usleep()" system
@ -70,10 +70,10 @@ EXE =
# will run on the target platform. This is usually the same
# as BCC, unless you are cross-compiling.
#
TCC = gcc -O6
TCC = gcc -O0
#TCC = gcc -g -O0 -Wall
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
#TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
#TCC = /opt/mingw/bin/i386-mingw32-gcc -O0
#TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
#### Tools used to build a static library.

View File

@ -14,7 +14,7 @@ TCLSTUBLIB=$TCLDIR/libtclstub8.4g.a
OPTS='-DUSE_TCL_STUBS=1 -DNDEBUG=1 -DHAVE_DLOPEN=1'
for i in *.c; do
if test $i != 'keywordhash.c'; then
CMD="cc -fPIC $OPTS -O2 -I. -I$TCLDIR -c $i"
CMD="cc -fPIC $OPTS -O0 -I. -I$TCLDIR -c $i"
echo $CMD
$CMD
fi

View File

@ -66,7 +66,7 @@ make target_source
cd tsrc
rm tclsqlite.c
OPTS='-DSTATIC_BUILD=1 -DNDEBUG=1'
i386-mingw32msvc-gcc -O2 $OPTS -I. -I$TCLDIR *.c -o sqlite3.exe
i386-mingw32msvc-gcc -O0 $OPTS -I. -I$TCLDIR *.c -o sqlite3.exe
zip ../doc/sqlite-$VERSW.zip sqlite3.exe
cd ..

View File

@ -78,7 +78,7 @@ details on some of the pertinent environment variables.
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
./configure CC=c89 CFLAGS=-O0 LIBS=-lposix
*Note Defining Variables::, for more details.

View File

@ -10,7 +10,7 @@ AC_ARG_ENABLE(portable-binary, [AC_HELP_STRING([--enable-portable-binary], [disa
if test "$ac_test_CFLAGS" != "set"; then
CFLAGS=""
case $ax_cv_c_compiler_vendor in
dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
dec) CFLAGS="-newc -w0 -O0 -ansi_alias -ansi_args -fp_reorder -tune host"
if test "x$acx_maxopt_portable" = xno; then
CFLAGS="$CFLAGS -arch host"
fi;;
@ -31,13 +31,13 @@ if test "$ac_test_CFLAGS" != "set"; then
xlc_opt="-qtune=auto"
fi
AX_CHECK_COMPILER_FLAGS($xlc_opt,
CFLAGS="-O3 -qansialias -w $xlc_opt",
[CFLAGS="-O3 -qansialias -w"
CFLAGS="-O0 -qansialias -w $xlc_opt",
[CFLAGS="-O0 -qansialias -w"
echo "******************************************************"
echo "* You seem to have the IBM C compiler. It is *"
echo "* recommended for best performance that you use: *"
echo "* *"
echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
echo "* CFLAGS=-O0 -qarch=xxx -qtune=xxx -qansialias -w *"
echo "* ^^^ ^^^ *"
echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
echo "* CPU you have. (Set the CFLAGS environment var. *"
@ -45,7 +45,7 @@ if test "$ac_test_CFLAGS" != "set"; then
echo "******************************************************"])
;;
intel) CFLAGS="-O3 -ansi_alias"
intel) CFLAGS="-O0 -ansi_alias"
if test "x$acx_maxopt_portable" = xno; then
icc_archflag=unknown
icc_flags=""
@ -78,7 +78,7 @@ if test "$ac_test_CFLAGS" != "set"; then
gnu)
# default optimization flags for gcc on all systems
CFLAGS="-O3 -fomit-frame-pointer"
CFLAGS="-O0 -fomit-frame-pointer"
# -malign-double for x86 systems
AX_CHECK_COMPILER_FLAGS(-malign-double, CFLAGS="$CFLAGS -malign-double")
@ -99,10 +99,10 @@ if test "$ac_test_CFLAGS" != "set"; then
echo "********************************************************"
echo "* WARNING: Don't know the best CFLAGS for this system *"
echo "* Use ./configure CFLAGS=... to specify your own flags *"
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
echo "* (otherwise, a default of CFLAGS=-O0 will be used) *"
echo "********************************************************"
echo ""
CFLAGS="-O3"
CFLAGS="-O0"
fi
AX_CHECK_COMPILER_FLAGS($CFLAGS, [], [

View File

@ -49,7 +49,7 @@ case "$host" in
IN_LINE=""
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
SOLINK="-Bdynamic -dy -G"
new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
new_AM_LDFLAGS=""
IN_LINE=inline
fi
@ -71,7 +71,7 @@ case "$host" in
FUNC_DEF=__func__
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
SOLINK="-shared -Xlinker -x"
new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
new_AM_LDFLAGS=""
fi
DYNAMIC_LIB_EXTEN="so"
@ -84,20 +84,20 @@ case "$host" in
FUNC_DEF=__func__
elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then
SOLINK="-shared -Xlinker -x"
new_AM_CFLAGS="-fpic -Wall -O4 -fexpensive-optimizations -funroll-loops"
new_AM_CFLAGS="-fpic -Wall -O0 -fexpensive-optimizations -funroll-loops"
new_AM_LDFLAGS=""
fi
DYNAMIC_LIB_EXTEN="so"
;;
i*6*-*-freebsd*)
SOLINK="-shared -Xlinker -x"
new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
new_AM_LDFLAGS=""
DYNAMIC_LIB_EXTEN="so"
;;
x86_64-*-freebsd*|amd64-*-freebsd*)
SOLINK="-shared -Xlinker -x"
new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops"
new_AM_CFLAGS="-fPIC -Wall -O0 -fexpensive-optimizations -funroll-loops"
new_AM_LDFLAGS=""
DYNAMIC_LIB_EXTEN="so"
;;

View File

@ -6311,7 +6311,7 @@ ifelse([AC_DISABLE_FAST_INSTALL])
AC_DEFUN([LT_AC_PROG_GCJ],
[AC_CHECK_TOOL(GCJ, gcj, no)
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O0"
AC_SUBST(GCJFLAGS)
])

18
libs/yaml/configure vendored
View File

@ -3222,13 +3222,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -O0"
else
CFLAGS="-g"
CFLAGS="-g -O0"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
CFLAGS="-O0"
else
CFLAGS=
fi
@ -5579,13 +5579,13 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -O0"
else
CXXFLAGS="-g"
CXXFLAGS="-g -O0"
fi
else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
CXXFLAGS="-O0"
else
CXXFLAGS=
fi
@ -6180,13 +6180,13 @@ if test "$ac_test_FFLAGS" = set; then
FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
FFLAGS="-g -O2"
FFLAGS="-g -O0"
else
FFLAGS="-g"
FFLAGS="-g -O0"
fi
else
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
FFLAGS="-O2"
FFLAGS="-O0"
else
FFLAGS=
fi

View File

@ -1,6 +1,6 @@
BASE=../../../..
MOD_CFLAGS= -O2
#MOD_CFLAGS= -march=core2 -g -O2 -malign-double -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -ffast-math -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -ftracer --save-temps
MOD_CFLAGS= -O0
#MOD_CFLAGS= -march=core2 -g -O0 -malign-double -mtune=core2 -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -ffast-math -funroll-loops -fprefetch-loop-arrays -funit-at-a-time -ftracer --save-temps
#MOD_LDFLAGS= --save-temps
LOCAL_SOURCES=amplitude.c buffer.c desa2.c goertzel.c fast_acosf.c
LOCAL_OBJS=amplitude.o buffer.o desa2.o goertzel.o fast_acosf.o

View File

@ -33,7 +33,7 @@ CFLAGS+=-g3
CFLAGS+=-I$(AST_INCLUDE_DIR) -I.
CFLAGS+=-D_REENTRANT -D_GNU_SOURCE
#CFLAGS+=-O6
#CFLAGS+=-O0
#CFLAGS+=-march=i586
CFLAGS+=-fomit-frame-pointer
ifeq ($(shell uname -m),x86_64)

View File

@ -2261,13 +2261,13 @@ if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
CFLAGS="-g -O0"
else
CFLAGS="-g"
CFLAGS="-g -O0"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
CFLAGS="-O0"
else
CFLAGS=
fi
@ -3144,7 +3144,7 @@ fi;
if test "$CXXFLAGS" = ""; then
CXXFLAGS="-O2"
CXXFLAGS="-O0"
fi
@ -4748,13 +4748,13 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -O0"
else
CXXFLAGS="-g"
CXXFLAGS="-g -O0"
fi
else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
CXXFLAGS="-O0"
else
CXXFLAGS=
fi
@ -5431,13 +5431,13 @@ if test "$ac_test_FFLAGS" = set; then
FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
FFLAGS="-g -O2"
FFLAGS="-g -O0"
else
FFLAGS="-g"
FFLAGS="-g -O0"
fi
else
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
FFLAGS="-O2"
FFLAGS="-O0"
else
FFLAGS=
fi
@ -20153,13 +20153,13 @@ if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
CXXFLAGS="-g -O0"
else
CXXFLAGS="-g"
CXXFLAGS="-g -O0"
fi
else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
CXXFLAGS="-O0"
else
CXXFLAGS=
fi

View File

@ -8,7 +8,7 @@
PLAT= none
CC= gcc
CFLAGS= -O2 -Wall $(MYCFLAGS)
CFLAGS= -O0 -Wall $(MYCFLAGS)
AR= ar rcu
RANLIB= ranlib
RM= rm -f
@ -81,7 +81,7 @@ none:
@echo " $(PLATS)"
aix:
$(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
$(MAKE) all CC="xlc" CFLAGS="-O0 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
ansi:
$(MAKE) all MYCFLAGS=-DLUA_ANSI