Enable hardening
Nobuhiro Iwamatsu
11 years ago
1 | 1 |
|
2 | 2 |
* Update debian/control.
|
3 | 3 |
- Add emacs24 to Depends of emacs-mozc. (Closes: #682040)
|
|
4 |
* Update debian/rules.
|
|
5 |
- Enable hardening.
|
4 | 6 |
|
5 | 7 |
-- Nobuhiro Iwamatsu <iwamatsu@debian.org> Fri, 20 Jul 2012 05:13:19 +0900
|
6 | 8 |
|
0 | 0 |
#!/usr/bin/make -f
|
1 | 1 |
# -*- makefile -*-
|
2 | 2 |
#
|
|
3 |
|
|
4 |
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
|
|
5 |
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
|
|
6 |
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
|
|
7 |
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
|
3 | 8 |
|
4 | 9 |
DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
|
5 | 10 |
DEB_BUILD_MULTIARCH :=$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
|
|
32 | 37 |
dh $@
|
33 | 38 |
|
34 | 39 |
override_dh_auto_configure:
|
35 | |
python build_mozc.py gyp --gypdir=/usr/bin --channel_dev=0 \
|
|
40 |
CXXFLAGS="$(CXXFLAGS)" python build_mozc.py gyp --gypdir=/usr/bin --channel_dev=0 \
|
36 | 41 |
--os=${BUILD_OS} --build_base=$(BUILD_DIR) \
|
37 | 42 |
--use_libprotobuf
|
38 | 43 |
|