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;;
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. *"
echo "******************************************************"])
;;
- intel) CFLAGS="-O3 -ansi_alias"
+ intel) CFLAGS="-O0 -ansi_alias"
if test "x$acx_maxopt_portable" = xno; then
icc_archflag=unknown
icc_flags=""
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")
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, [], [
# -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
;;
*convex-v11*)
APR_ADDTO(CPPFLAGS, [-DCONVEXOS11])
- APR_SETIFNULL(CFLAGS, [-O1])
+ APR_SETIFNULL(CFLAGS, [-O0])
APR_ADDTO(CFLAGS, [-ext])
;;
i860-intel-osf1)
'
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.
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
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
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
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],[
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
- CFLAGS += -O2
+ CFLAGS += -O0
endif
include /usr/share/dpatch/dpatch.make
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
## 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 \
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
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
USE_IPV6=
USE_MDUPDATE=
_MACOSX_DEPLOYMENT_TARGET=
-_OPTIMIZE_FLAGS=-O
+_OPTIMIZE_FLAGS=-O0
_DEBUG_FLAGS=-g
MOZ_DEBUG=1
MOZ_OPTIMIZE=
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
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"])
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
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
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'
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
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
DSO_CFLAGS=-fPIC
DSO_LDOPTS=-shared
OS_LIBS="$OS_LIBS -lsocket"
- _OPTIMIZE_FLAGS="-O1"
+ _OPTIMIZE_FLAGS="-O0"
_DEBUG_FLAGS="-gstabs"
;;
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"
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
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],[
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
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
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=""
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=""
srcdir = .
top_builddir = .
-OPT_LEVEL := -O2
+OPT_LEVEL := -O0
PREFIX = /usr/local
prefix = $(PREFIX)
exec_prefix = ${prefix}
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()
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"
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
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
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"
# 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"
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
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"
#### 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
# 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.
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
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 ..
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.
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;;
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. *"
echo "******************************************************"])
;;
- intel) CFLAGS="-O3 -ansi_alias"
+ intel) CFLAGS="-O0 -ansi_alias"
if test "x$acx_maxopt_portable" = xno; then
icc_archflag=unknown
icc_flags=""
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")
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, [], [
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
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"
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"
;;
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)
])
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
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
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
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
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)
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
if test "$CXXFLAGS" = ""; then
- CXXFLAGS="-O2"
+ CXXFLAGS="-O0"
fi
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
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
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
PLAT= none
CC= gcc
-CFLAGS= -O2 -Wall $(MYCFLAGS)
+CFLAGS= -O0 -Wall $(MYCFLAGS)
AR= ar rcu
RANLIB= ranlib
RM= rm -f
@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