contrib: enable dvdread and dvdnav debugging when debug=max is configured
authorjstebbins <jstebbins.hb@gmail.com>
Mon, 11 Jul 2011 15:01:15 +0000 (15:01 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Mon, 11 Jul 2011 15:01:15 +0000 (15:01 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4097 b64f7644-9d1e-0410-96f1-a4d463321fa5

contrib/libdvdnav/module.defs
contrib/libdvdread/module.defs

index 2cee7ad172ed1c49593898e63f75ad1b18c2d871..0f955f9925c57813e0e4a38ad99c634f9facc7d4 100644 (file)
@@ -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;
index acd6717c7f55fe24b2bdc870986b90384c8e1284..59967c037107b8152c97b8546857cc6e515acda0 100644 (file)
@@ -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;