From bbc5fc771465006d7978039c623bb2de43c83fab Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 11 Jul 2011 15:01:15 +0000 Subject: contrib: enable dvdread and dvdnav debugging when debug=max is configured git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4097 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- contrib/libdvdnav/module.defs | 6 ++++++ contrib/libdvdread/module.defs | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/contrib/libdvdnav/module.defs b/contrib/libdvdnav/module.defs index 2cee7ad17..0f955f992 100644 --- a/contrib/libdvdnav/module.defs +++ b/contrib/libdvdnav/module.defs @@ -6,6 +6,12 @@ LIBDVDNAV.EXTRACT.tarbase = libdvdnav ifneq (max,$(GCC.g)) LIBDVDNAV.CONFIGURE.env.CFLAGS = CFLAGS="-DNDEBUG" +else +ifeq (none,$(GCC.O)) + LIBDVDNAV.CONFIGURE.env.CFLAGS = CFLAGS="-g -O0" +else + LIBDVDNAV.CONFIGURE.env.CFLAGS = CFLAGS="-g" +endif endif LIBDVDNAV.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; diff --git a/contrib/libdvdread/module.defs b/contrib/libdvdread/module.defs index acd6717c7..59967c037 100644 --- a/contrib/libdvdread/module.defs +++ b/contrib/libdvdread/module.defs @@ -4,5 +4,13 @@ $(eval $(call import.CONTRIB.defs,LIBDVDREAD)) LIBDVDREAD.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libdvdread-svn1168.tar.gz LIBDVDREAD.EXTRACT.tarbase = libdvdread +ifeq (max,$(GCC.g)) +ifeq (none,$(GCC.O)) + LIBDVDREAD.CONFIGURE.env.CFLAGS = CFLAGS="-g -O0" +else + LIBDVDREAD.CONFIGURE.env.CFLAGS = CFLAGS="-g" +endif +endif + LIBDVDREAD.CONFIGURE.extra = --enable-local-dlfcn LIBDVDREAD.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; -- cgit v1.2.3