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

[#1759] ./autogen.sh --prefix=/usr --with-debug to use optimization level 0

parent 62f6fd78
No related branches found
No related tags found
No related merge requests found
......@@ -214,19 +214,21 @@ PKG_CHECK_EXISTS([dbus-1 >= $DBUS_RECURSIVE_MUTEX_VERSION],
[AC_DEFINE(DBUS_HAS_RECURSIVE_MUTEX, , [DBus supports recursive mutexes (needs DBus >= 0.95)])]
)
#AC_ARG_ENABLE(dbus-debug,
# AS_HELP_STRING([--enable-dbus-debug],
# [enable debugging support]),
# [enable_debug=$enableval],
# [enable_debug=no]
#)
#if test "$enable_debug" = "yes" ; then
# CXXFLAGS="$CXXFLAGS -Wall -ggdb -O0"
# AC_DEFINE(DEBUG, 1, [Define to enable debug build])
#else
# CXXFLAGS="$CXXFLAGS -Wall -O3"
#fi
AC_ARG_WITH(debug,
AS_HELP_STRING(
[--with-debug],
[Set 'full' to enable debugging information @<:@default=no@:>@]
),
[with_debug=${withval}],
[with_debug=no]
)
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
CXXFLAGS="$USE_EXCEPTIONS $USER_INCLUDES -g -O0 -Wno-return-type"
else
CXXFLAGS="-g -Wall -O2"
fi
if test "$enable_glib" = "yes" ; then
......
......@@ -65,7 +65,7 @@ make dep
make clean
make
cd -
./autogen.sh --prefix=%{_prefix} CXXFLAGS=-O2
./autogen.sh --prefix=%{_prefix}
make -j
%install
......
......@@ -64,7 +64,7 @@ make dep
make clean
make
cd -
./autogen.sh --prefix=%{_prefix} CXXFLAGS=-O2
./autogen.sh --prefix=%{_prefix}
make -j
%install
......
......@@ -20,7 +20,7 @@ configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
./autogen.sh --prefix=/usr CXXFLAGS=O2
./autogen.sh --prefix=/usr
cd libs/pjproject-1.0.2; ./autogen.sh --prefix=/usr
touch configure-stamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment