[SCM] crtmpserver/master: Don't override -O3 set by build system.
ceros-guest at users.alioth.debian.org
ceros-guest at users.alioth.debian.org
Thu Mar 22 01:03:27 UTC 2012
The following commit has been merged in the master branch:
commit 1b56716d07d220d16a48550174b5148119a51f33
Author: Andres Mejia <amejia004 at gmail.com>
Date: Wed Mar 21 20:53:11 2012 -0400
Don't override -O3 set by build system.
diff --git a/debian/rules b/debian/rules
index fe69420..f47c6fc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,12 +2,16 @@
#export DH_VERBOSE=1
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS 2>/dev/null | sed -e 's/-O2//g')
+CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS 2>/dev/null | sed -e 's/-O2//g')
DEB_BUILDDIR = obj-$(DEB_BUILD_GNU_TYPE)
DEB_PACKAGE_VERSION := $(shell dpkg-parsechangelog | awk '/^Version/ {print $$2}')
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_PACKAGE_VERSION) | cut -d '-' -f 1 | sed s,~,_, )
DEB_CONFIGURE_FLAGS = \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_C_FLAGS="$(CFLAGS)" \
+ -DCMAKE_CXX_FLAGS="$(CXXFLAGS)" \
-DCRTMPSERVER_INSTALL_PREFIX=/usr \
-DTEMP_FRAMEWORK_VER="$(DEB_UPSTREAM_VERSION)" \
-DCRTMPSERVER_SOURCES_ROOT=$(CURDIR) \
--
crtmpserver packaging
More information about the pkg-multimedia-commits
mailing list