debian/rules: Modernize and enable full hardening
Boyuan Yang
5 years ago
0 | 0 | #!/usr/bin/make -f |
1 | # -*- makefile -*- | |
2 | # | |
1 | 3 | # Liang Guo <bluestonechina@gmail.com> 2010 |
2 | 4 | # YunQiang Su <wzssyqa@gmail.com>, 2012 |
5 | # | |
6 | # Uncomment this to turn on verbose mode. | |
3 | 7 | export DH_VERBOSE=1 |
8 | ||
9 | # see FEATURE AREAS in dpkg-buildflags(1) | |
10 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all | |
11 | export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed | |
12 | ||
4 | 13 | SCONS=scons |
5 | 14 | |
6 | 15 | %: |