Skip to content
Snippets Groups Projects
Commit 62f6fd78 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

[#1759] Use optimization level 0 for repository, 2 for packages

parent 035a6b32
No related branches found
No related tags found
No related merge requests found
...@@ -18,9 +18,9 @@ AC_ARG_WITH(debug, ...@@ -18,9 +18,9 @@ AC_ARG_WITH(debug,
[with_debug=no] [with_debug=no]
) )
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
CFLAGS="$CFLAGS -g -O2 -DDEBUG -Wall -Wextra" CFLAGS="-g -O0 -DDEBUG -Wall -Wextra"
else else
CFLAGS="$CFLAGS -g -Wall -O2" CFLAGS="$CFLAGS"
fi fi
AC_PROG_CC AC_PROG_CC
......
...@@ -96,7 +96,8 @@ dnl Define C++ as default language ...@@ -96,7 +96,8 @@ dnl Define C++ as default language
AC_LANG(C++) AC_LANG(C++)
dnl Setup C++ compiler flags dnl Setup C++ compiler flags
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wno-return-type" CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -g -Wno-return-type"
dnl CXXFLAGS="$USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wno-return-type"
dnl Check for header files dnl Check for header files
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
......
...@@ -65,7 +65,7 @@ make dep ...@@ -65,7 +65,7 @@ make dep
make clean make clean
make make
cd - cd -
./autogen.sh --prefix=%{_prefix} ./autogen.sh --prefix=%{_prefix} CXXFLAGS=-O2
make -j make -j
%install %install
......
...@@ -64,7 +64,7 @@ make dep ...@@ -64,7 +64,7 @@ make dep
make clean make clean
make make
cd - cd -
./autogen.sh --prefix=%{_prefix} ./autogen.sh --prefix=%{_prefix} CXXFLAGS=-O2
make -j make -j
%install %install
......
...@@ -20,7 +20,7 @@ configure: configure-stamp ...@@ -20,7 +20,7 @@ configure: configure-stamp
configure-stamp: configure-stamp:
dh_testdir dh_testdir
# Add here commands to configure the package. # Add here commands to configure the package.
./autogen.sh --prefix=/usr ./autogen.sh --prefix=/usr CXXFLAGS=O2
cd libs/pjproject-1.0.2; ./autogen.sh --prefix=/usr cd libs/pjproject-1.0.2; ./autogen.sh --prefix=/usr
touch configure-stamp touch configure-stamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment