summaryrefslogtreecommitdiff
blob: 7b90a0c0c27b953b506dbd66c0c3187e95c10979 (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
25
26
27
28
29
30
31
32
33
34
35
diff --git a/common.mk b/common.mk
index 18f539c..142f7e6 100644
--- a/common.mk
+++ b/common.mk
@@ -34,16 +34,11 @@ webcgidir	      := $(prefix)/lib/cgi-bin
 applicationsdir := $(prefix)/share/applications
 
 PERL            := /usr/bin/perl
-CC              := gcc
-CFLAGS           = -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Werror -g -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
-LDFLAGS         :=
-LIBS            := 
+CC              ?= gcc
+CFLAGS          += -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
+LDFLAGS         +=
+LIBS            += 
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-  CFLAGS += -O0
-else
-  CFLAGS += -O2
-endif
 
 
 # determine our version number
@@ -60,9 +55,6 @@ ifndef VERSION
   unexport CDPATH ENV
 
   ifdef DESTDIR
-    ifneq ($(DESTDIR),$(abspath $(DESTDIR)))
-      $(error DESTDIR "$(DESTDIR)" is not an absolute path)
-    endif
     override ddirshort  :=  DESTDIR
     export ddirshort
   endif