From 8a7c5b28bbc234262bb4b2ef45ac0192bae0703d Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Fri, 28 Dec 2012 02:55:11 +0100 Subject: [PATCH] patch Makefile to import $LDFLAGS and $CPPFLAGS into $CFLAGS --- debian/patches/makefile.patch | 13 +++++++++++++ debian/patches/series | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 debian/patches/makefile.patch diff --git a/debian/patches/makefile.patch b/debian/patches/makefile.patch new file mode 100644 index 0000000..18aebea --- /dev/null +++ b/debian/patches/makefile.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 485adc3..191845a 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,7 +12,7 @@ WARN?=-Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs + PLATOPTS_SPARC64=-mcpu=ultrasparc -pipe -fomit-frame-pointer -ffast-math -finline-functions -fweb -frename-registers -mapp-regs + + +-CFLAGS+=$(DEBUG) $(WARN) $(OPTIONS) $(PLATOPTS) ++CFLAGS+=$(DEBUG) $(WARN) $(LDFLAGS) $(CPPFLAGS) $(OPTIONS) $(PLATOPTS) + + INSTALL=install + MKDIR=mkdir -p diff --git a/debian/patches/series b/debian/patches/series index 171dc9f..757c2a7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,3 @@ 01-edge.8.diff upstream-svn4235.patch - +makefile.patch