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
Branches
Tags
No related merge requests found
...@@ -214,19 +214,21 @@ PKG_CHECK_EXISTS([dbus-1 >= $DBUS_RECURSIVE_MUTEX_VERSION], ...@@ -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_DEFINE(DBUS_HAS_RECURSIVE_MUTEX, , [DBus supports recursive mutexes (needs DBus >= 0.95)])]
) )
#AC_ARG_ENABLE(dbus-debug,
# AS_HELP_STRING([--enable-dbus-debug], AC_ARG_WITH(debug,
# [enable debugging support]), AS_HELP_STRING(
# [enable_debug=$enableval], [--with-debug],
# [enable_debug=no] [Set 'full' to enable debugging information @<:@default=no@:>@]
#) ),
[with_debug=${withval}],
#if test "$enable_debug" = "yes" ; then [with_debug=no]
# CXXFLAGS="$CXXFLAGS -Wall -ggdb -O0" )
# AC_DEFINE(DEBUG, 1, [Define to enable debug build]) if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
#else CXXFLAGS="$USE_EXCEPTIONS $USER_INCLUDES -g -O0 -Wno-return-type"
# CXXFLAGS="$CXXFLAGS -Wall -O3" else
#fi CXXFLAGS="-g -Wall -O2"
fi
if test "$enable_glib" = "yes" ; then if test "$enable_glib" = "yes" ; then
......
...@@ -65,7 +65,7 @@ make dep ...@@ -65,7 +65,7 @@ make dep
make clean make clean
make make
cd - cd -
./autogen.sh --prefix=%{_prefix} CXXFLAGS=-O2 ./autogen.sh --prefix=%{_prefix}
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} CXXFLAGS=-O2 ./autogen.sh --prefix=%{_prefix}
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 CXXFLAGS=O2 ./autogen.sh --prefix=/usr
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