[vlc-commits] contribs: only force ass optimizations when WITH_OPTIMIZATION is set
Steve Lhomme
git at videolan.org
Thu Sep 10 18:09:46 CEST 2015
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Fri Jul 31 16:54:54 2015 +0200| [a214613109809f72d1bd4ed8ba21ef0e967645d9] | committer: Jean-Baptiste Kempf
contribs: only force ass optimizations when WITH_OPTIMIZATION is set
otherwise bring the debug symbols
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a214613109809f72d1bd4ed8ba21ef0e967645d9
---
contrib/src/ass/rules.mak | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/contrib/src/ass/rules.mak b/contrib/src/ass/rules.mak
index 4d7fb53..aa84ff7 100644
--- a/contrib/src/ass/rules.mak
+++ b/contrib/src/ass/rules.mak
@@ -59,8 +59,14 @@ else
ASS_CONF += --disable-harfbuzz
endif
+ifdef WITH_OPTIMIZATION
+ASS_CFLAGS += -O3
+else
+ASS_CFLAGS += -g
+endif
+
.ass: libass
$(RECONF)
- cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF) $(ASS_CONF)
+ cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(ASS_CFLAGS)" ./configure $(HOSTCONF) $(ASS_CONF)
cd $< && $(MAKE) install
touch $@
More information about the vlc-commits
mailing list