diff options
author | Guillem Jover <guillem@debian.org> | 2013-10-20 21:06:50 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-10-26 14:57:36 +0200 |
commit | 1b2f6e01c8c11f0adf04a3dee91ed9a6ac5dae5d (patch) | |
tree | 6fa3ddcd958da6cc0db4d6b7e1b37d9e99cc052c /scripts | |
parent | b4182cc9f05906ac3fecc41710b0d3ab9d329b07 (diff) | |
download | dpkg-1b2f6e01c8c11f0adf04a3dee91ed9a6ac5dae5d.tar.gz |
dpkg-buildflags: Add pie and stack-protector options to FFLAGS
When enabled add those flags to the Fortran build flags. Update the
man page to document that FFLAGS is a subset of CFLAGS.
Closes: #726932
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Dpkg/Vendor/Debian.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index bf5c8aef4..e1a6b0cc0 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -150,6 +150,7 @@ sub add_hardening_flags { # PIE if ($use_feature{pie}) { $flags->append('CFLAGS', '-fPIE'); + $flags->append('FFLAGS', '-fPIE'); $flags->append('CXXFLAGS', '-fPIE'); $flags->append('GCJFLAGS', '-fPIE'); $flags->append('LDFLAGS', '-fPIE -pie'); @@ -158,6 +159,7 @@ sub add_hardening_flags { # Stack protector if ($use_feature{stackprotector}) { $flags->append('CFLAGS', '-fstack-protector --param=ssp-buffer-size=4'); + $flags->append('FFLAGS', '-fstack-protector --param=ssp-buffer-size=4'); $flags->append('CXXFLAGS', '-fstack-protector --param=ssp-buffer-size=4'); $flags->append('GCJFLAGS', '-fstack-protector --param=ssp-buffer-size=4'); } |