[vlc-devel] [PATCH] contribs: Force optimizations flags

Rémi Denis-Courmont remi at remlab.net
Tue May 17 12:50:53 CEST 2016


Le 2016-05-17 11:51, Hugo Beauzée-Luyssen a écrit :
> Some packages aren't forcing those, leading to a bunch of contribs 
> being
> built without any kind of optimizations.

Is -O3 safe for all contribs?

> ---
>  contrib/src/main.mak | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 8d94b64..481d366 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) -O3
> +CXXFLAGS := $(CXXFLAGS) -O3
>  endif
>
>  # Do not export those! Use HOSTVARS.

-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list