forked from premiere/premiere-libtorrent
Fix debug flags and add option to python build
* The '-g' flag are being passed in by CXXFLAGS and CFLAGS so ensure that debugging builds are actually off by adding '-g0' to DEBUG_FLAGS. * Add DEBUG_FLAGS to Python compiler options.
This commit is contained in:
parent
fc3eae8e9b
commit
748c6e0da0
|
@ -1 +1 @@
|
||||||
-I@top_srcdir@/include @COMPILETIME_OPTIONS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @CXXFLAGS@ @PYTHON_CXXFLAGS@ @OPENSSL_INCLUDES@
|
-I@top_srcdir@/include @COMPILETIME_OPTIONS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @CXXFLAGS@ @PYTHON_CXXFLAGS@ @OPENSSL_INCLUDES@ @DEBUGFLAGS@
|
||||||
|
|
|
@ -312,13 +312,13 @@ AS_CASE(["$ARG_ENABLE_DEBUG"],
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
AC_DEFINE([TORRENT_USE_ASSERTS],[1],[Define to enable debug code.])
|
AC_DEFINE([TORRENT_USE_ASSERTS],[1],[Define to enable debug code.])
|
||||||
COMPILETIME_OPTIONS="$COMPILETIME_OPTIONS -DTORRENT_USE_ASSERTS"
|
COMPILETIME_OPTIONS="$COMPILETIME_OPTIONS -DTORRENT_USE_ASSERTS"
|
||||||
DEBUGFLAGS="-g"
|
DEBUGFLAGS="-Og"
|
||||||
],
|
],
|
||||||
["no"], [
|
["no"], [
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_DEFINE([NDEBUG],[1],[Define to disable debug code.])
|
AC_DEFINE([NDEBUG],[1],[Define to disable debug code.])
|
||||||
#COMPILETIME_OPTIONS="$COMPILETIME_OPTIONS -DNDEBUG "
|
#COMPILETIME_OPTIONS="$COMPILETIME_OPTIONS -DNDEBUG "
|
||||||
DEBUGFLAGS="-Os"
|
DEBUGFLAGS="-g0 -Os"
|
||||||
],
|
],
|
||||||
[AC_MSG_RESULT([$ARG_ENABLE_DEBUG])
|
[AC_MSG_RESULT([$ARG_ENABLE_DEBUG])
|
||||||
AC_MSG_ERROR([Unknown option "$ARG_ENABLE_DEBUG". Use either "yes" or "no".])]
|
AC_MSG_ERROR([Unknown option "$ARG_ENABLE_DEBUG". Use either "yes" or "no".])]
|
||||||
|
|
Loading…
Reference in New Issue