summaryrefslogtreecommitdiff
path: root/debian/patches/03-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/03-build.patch')
-rw-r--r--debian/patches/03-build.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/03-build.patch b/debian/patches/03-build.patch
new file mode 100644
index 0000000..158981f
--- /dev/null
+++ b/debian/patches/03-build.patch
@@ -0,0 +1,24 @@
+Author: Daniel Baumann <daniel.baumann@progress-technologies.net>
+Description: Avoid overwriting build environment rather than to just extend it.
+
+diff -Naurp dmidecode.orig/Makefile dmidecode/Makefile
+--- dmidecode.orig/Makefile 2011-10-28 21:49:16.510949714 +0200
++++ dmidecode/Makefile 2012-01-21 11:05:50.109410854 +0100
+@@ -13,7 +13,7 @@
+ #
+
+ CC = gcc
+-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
++CFLAGS += -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
+ -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
+ #CFLAGS += -DBIGENDIAN
+ #CFLAGS += -DALIGNMENT_WORKAROUND
+@@ -23,7 +23,7 @@ CFLAGS += -O2
+ #CFLAGS += -g
+
+ # Pass linker flags here
+-LDFLAGS =
++#LDFLAGS =
+
+ DESTDIR =
+ prefix = /usr/local