~ubuntu-branches/ubuntu/lucid/slrn/lucid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jörg Sommer
  • Date: 2008-04-30 15:46:03 UTC
  • Revision ID: james.westby@ubuntu.com-20080430154603-uda4q6m02nfkc6n9
Tags: 0.9.9~pre102-2
* Replaced selfmade hardening support by the package hardening-wrapper.
  This handles all those special cases I don't have done in my selfmade
  version. The hardening-wrapper doesn't use DEB_BUILD_OPTIONS, but its
  own variables DEB_BUILD_HARDENING*; see man hardening-wrapper. So,
  DEB_BUILD_OPTIONS=nohardening isn't used. (closes: #478057)

* Updates of debconf translation:
  + Vietnamese, thanks and a big sorry to Clytie Siddall. I've
    completely missed this bug report. (closes: #461378)

* Upload sponsored by Norbert Tretkowski

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
        WITH_UUDEV := --with-uudeview
8
8
endif
9
9
 
10
 
CFLAGS += -Wall -g
 
10
export CFLAGS += -Wall -g
11
11
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12
12
    CFLAGS += -O0
13
13
else
14
14
    CFLAGS += -O2
15
15
endif
16
16
 
17
 
ifeq (,$(findstring nohardening,$(DEB_BUILD_OPTIONS)))
18
 
    # http://lists.debian.org/debian-devel-announce/2008/01/msg00006.html
19
 
    CFLAGS += -fPIC -fPIE -fstack-protector -Wformat=2 -Wextra
20
 
    LDFLAGS += -Wl,-zrelro,-pie
21
 
    ifeq  (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
 
        CFLAGS += -D_FORTIFY_SOURCE=2
23
 
    endif
24
 
endif
 
17
export DEB_BUILD_HARDENING=1
25
18
 
26
19
include /usr/share/dpatch/dpatch.make
27
20
 
44
37
                --with-canlock \
45
38
                --enable-iconv \
46
39
                $(WITH_UUDEV) \
47
 
                CFLAGS="$(CFLAGS)"
 
40
                || { rc=$$?; cat config.log; exit $$rc; }
48
41
 
49
42
        $(MAKE) -C src slrn
50
43
        $(MAKE) CANLOCK_LIB= slrnpull