summaryrefslogtreecommitdiff
path: root/debian/patches/03-build.patch
blob: 158981f1078e2e806d5432938e287c4b6feb8099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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