From 8e901aee3e022c0cba0996e18f55d0a9ba5a60ce Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 1 Dec 2010 10:18:36 -0700 Subject: [PATCH] patch from Jakub Wilk adding noopt and nostrip build option support --- debian/changelog | 7 +++++++ debian/rules | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 941a569..02a14f8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +sudo (1.7.4p4-6) UNRELEASED; urgency=low + + * patch from Jakub Wilk to add noopt and nostrip build option support, + closes: #605580 + + -- Bdale Garbee Wed, 01 Dec 2010 10:18:01 -0700 + sudo (1.7.4p4-5) unstable; urgency=low * add Vcs entries to the control file diff --git a/debian/rules b/debian/rules index 15f94a4..5011197 100755 --- a/debian/rules +++ b/debian/rules @@ -2,9 +2,11 @@ export DH_VERBOSE=1 -CFLAGS = -O2 -Wall -Wno-comment -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) -CFLAGS += -g +CFLAGS = -Wall -Wno-comment -g +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 endif export CFLAGS -- 2.47.2