~ubuntu-branches/ubuntu/vivid/lurker/vivid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jonas Meurer
  • Date: 2012-02-04 00:11:32 UTC
  • Revision ID: package-import@ubuntu.com-20120204001132-e90ihqmsiv51e0ud
Tags: 2.3-3
enable hardening build flags, thanks to Moritz Muehlenhoff for the patch.
(closes: #657655)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
15
15
endif
16
16
 
17
 
CFLAGS = -Wall -g
 
17
CXXFLAGS = `dpkg-buildflags --get CXXFLAGS`
 
18
CXXFLAGS += -Wall
 
19
LDFLAGS = `dpkg-buildflags --get LDFLAGS`
 
20
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
18
21
 
19
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20
 
        CFLAGS += -O0
21
 
else
22
 
        CFLAGS += -O2
23
 
endif
24
22
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
25
23
        INSTALL_PROGRAM += -s
26
24
endif
33
31
configure-stamp:
34
32
        dh_testdir
35
33
        # Add here commands to configure the package.
36
 
        CXXFLAGS="$(CFLAGS)" ./configure $(confflags) \
 
34
        CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure $(confflags) \
37
35
                --prefix=/usr \
38
36
                --sysconfdir=/etc \
39
37
                --localstatedir=/var \