[vlc-commits] contribs: Force optimizations flags

Hugo Beauzée-Luyssen git at videolan.org
Tue May 17 13:03:47 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue May 17 11:50:28 2016 +0200| [0097e8c2dcb95801f3fadf4642b1476df2fb98b8] | committer: Hugo Beauzée-Luyssen

contribs: Force optimizations flags

Some packages aren't forcing those, leading to a bunch of contribs being
built without any kind of optimizations.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0097e8c2dcb95801f3fadf4642b1476df2fb98b8
---

 contrib/src/main.mak |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 8d94b64..edb3dbd 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -177,6 +177,9 @@ LDFLAGS := $(LDFLAGS) $(EXTRA_LDFLAGS)
 ifndef WITH_OPTIMIZATION
 CFLAGS := $(CFLAGS) -O0
 CXXFLAGS := $(CXXFLAGS) -O0
+else
+CFLAGS := $(CFLAGS) -O2
+CXXFLAGS := $(CXXFLAGS) -O2
 endif
 
 # Do not export those! Use HOSTVARS.



More information about the vlc-commits mailing list