[SCM] dvbcut/master: use distro-set standard cflags

Reinhard Tartler siretart at tauware.de
Sat Jan 21 08:14:42 UTC 2012


On Sa, Jan 21, 2012 at 09:11:22 (CET), siretart at users.alioth.debian.org wrote:

> The following commit has been merged in the master branch:
> commit c489cd59acd265da26002d7998b5c3e306dec6e5
> Author: Reinhard Tartler <siretart at tauware.de>
> Date:   Sat Jan 21 08:56:27 2012 +0100
>
>     use distro-set standard cflags
>
> diff --git a/debian/rules b/debian/rules
> index dbdae5a..8ca53b3 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -6,7 +6,10 @@ UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -r ' s/\+[^+]+$$//')
>  SVN_VERSION := $(shell echo $(DEB_VERSION) | sed -r 's/^[0-9.:-]+\+r//; s/-[^-]+$$//' )
>  SVN_URL := http://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk
>  ORIG_TAR_GZ := ../$(DEB_SOURCE)_$(UPSTREAM_VERSION)+svn$(SVN_VERSION).orig.tar.gz
> +CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
> +CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
>  CMAKE_FLAGS := -DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_VERBOSE_MAKEFILE=1
> +CMAKE_FLAGS += -DCMAKE_C_FLAGS="$(CFLAGS)" -DCMAKE_CXX_FLAGS="$(CXXFLAGS)"

Please note that before this change, the binaries got build without any
optimization *at all*! 

I revealed this by setting -DCMAKE_VERBOSE_MAKEFILE=1, which is an
extremly good idea to do with any cmake project.

Cheers,
Reinhard

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4



More information about the pkg-multimedia-maintainers mailing list