From: Modestas Vainius <modestas@vainius.eu>
Date: Wed, 17 Jun 2009 22:16:33 +0000 (+0300)
Subject: Do not explicitly repass env. variables {C,CXX,LD}FLAGS to cmake.
X-Git-Tag: 7.3.0~36
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=91928482af09c4ca1092f124921d0f47613c17ba;p=debhelper.git

Do not explicitly repass env. variables {C,CXX,LD}FLAGS to cmake.

Apparently, cmake itself reads values of those environment variables and uses
them accordingly. There is no need to repass them via -DCMAKE_{C,CXX,LD}_FLAGS.

Signed-off-by: Modestas Vainius <modestas@vainius.eu>
---

diff --git a/Debian/Debhelper/Buildsystem/cmake.pm b/Debian/Debhelper/Buildsystem/cmake.pm
index 1ccab10..5662874 100644
--- a/Debian/Debhelper/Buildsystem/cmake.pm
+++ b/Debian/Debhelper/Buildsystem/cmake.pm
@@ -35,9 +35,6 @@ sub configure {
 
 	# Standard set of cmake flags
 	push @flags, "-DCMAKE_INSTALL_PREFIX=/usr";
-	push @flags, "-DCMAKE_C_FLAGS=$ENV{CFLAGS}" if (exists $ENV{CFLAGS});
-	push @flags, "-DCMAKE_CXX_FLAGS=$ENV{CXXFLAGS}" if (exists $ENV{CXXFLAGS});
-	push @flags, "-DCMAKE_LD_FLAGS=$ENV{LDFLAGS}" if (exists $ENV{LDFLAGS});
 	push @flags, "-DCMAKE_SKIP_RPATH=ON";
 	push @flags, "-DCMAKE_VERBOSE_MAKEFILE=ON";