summaryrefslogtreecommitdiffstats
path: root/contrib/libbluray
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-07-11 18:19:51 +0000
committerjstebbins <[email protected]>2011-07-11 18:19:51 +0000
commit4364fd9ba6dc63b4a7c75cfcb25637ae5c4d5ee5 (patch)
treedb719f4c79f699bbb07ba4542b7b5aa3ff5e1a2b /contrib/libbluray
parent8afaff770fe5e5a3ce67f778aa712eeb8954252b (diff)
contrib: enable debuggin when debug=max and disable optimizations when optimizations=none
except for ffmpeg on darwin i386 which fails to build when optimizations are disabled due to gcc running out of registers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4103 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/libbluray')
-rw-r--r--contrib/libbluray/module.defs12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/libbluray/module.defs b/contrib/libbluray/module.defs
index 123eb4cdf..d3371d089 100644
--- a/contrib/libbluray/module.defs
+++ b/contrib/libbluray/module.defs
@@ -5,4 +5,14 @@ LIBBLURAY.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libbluray-0
LIBBLURAY.CONFIGURE.bootstrap = rm -fr aclocal.m4 autom4te.cache; ./bootstrap;
-LIBBLURAY.CONFIGURE.extra += --disable-optimizations --enable-debug --disable-examples
+ifneq (max,$(LIBBLURAY.GCC.g))
+ LIBBLURAY.CONFIGURE.extra += --disable-debug
+else
+ LIBBLURAY.CONFIGURE.extra += --enable-debug
+endif
+
+ifeq (none,$(LIBBLURAY.GCC.O))
+ LIBBLURAY.CONFIGURE.extra += --disable-optimizations
+endif
+
+LIBBLURAY.CONFIGURE.extra += --disable-examples