Package: powerpc-utils Severity: wishlist Tags: patch This patch fixes debian and upstream code so that DEB_BUILD_OPTIONS=noopt produces unoptimised binaries.
-- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-amd64 Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
diff -ur powerpc-utils-1.1.3.old/debian/rules powerpc-utils-1.1.3/debian/rules --- powerpc-utils-1.1.3.old/debian/rules 2007-06-29 21:42:35.000000000 +0200 +++ powerpc-utils-1.1.3/debian/rules 2007-06-29 22:38:52.000000000 +0200 @@ -7,6 +7,15 @@ export DH_COMPAT=3 +CFLAGS := -g -Wall + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +export CFLAGS + build: build-stamp build-stamp: dh_testdir awacs_defs.h diff -ur powerpc-utils-1.1.3.old/Makefile powerpc-utils-1.1.3/Makefile --- powerpc-utils-1.1.3.old/Makefile 2007-06-29 21:42:35.000000000 +0200 +++ powerpc-utils-1.1.3/Makefile 2007-06-29 22:41:51.000000000 +0200 @@ -22,7 +22,8 @@ SGMLMAN = sgml2txt -man CC = gcc -Wall -Wstrict-prototypes -CFLAGS = -g -O2 -fsigned-char -D_GNU_SOURCE +CFLAGS ?= -O2 +CFLAGS += -g -fsigned-char -D_GNU_SOURCE LDFLAGS = INSTALL = /usr/bin/install -c SOUND_INC = -I.