Bug#707925: Makefile overrides compiler flags from the environment
Here's a simpler patch for this.
>From 039e1c575d547617a22ef041c2b046f765917f46 Mon Sep 17 00:00:00 2001
From: Jason White <jason@jasonjgw.net>
Date: Mon, 13 May 2013 09:54:46 +1000
Subject: [PATCH] Pass compiler flags on make command line so they won't be
ignored.
---
debian/rules | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 8b38a4b..ebea9b8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,8 +31,8 @@ build-stamp:
dh_testdir
cp src/portaudio19.h src/portaudio.h
- cd src && CXXFLAGS="$(CXXFLAGS) $(CFLAGS)" $(MAKE) DATADIR=$(ESPEAK_DATA)/espeak-data libespeak.a
- cd src && CXXFLAGS="$(CXXFLAGS) $(CFLAGS)" $(MAKE) DATADIR=$(ESPEAK_DATA)/espeak-data espeak AUDIO=runtime
+ cd src && $(MAKE) CXXFLAGS="$(CXXFLAGS) $(CFLAGS)" DATADIR=$(ESPEAK_DATA)/espeak-data libespeak.a
+ cd src && $(MAKE) CXXFLAGS="$(CXXFLAGS) $(CFLAGS)" DATADIR=$(ESPEAK_DATA)/espeak-data espeak AUDIO=runtime
# Build static speak binary
cd platforms/big_endian && CFLAGS="$(CFLAGS)" $(MAKE)
--
1.8.1.3
Reply to: