blob: e9153ce2f0823c38a04d771c46ea9b0e889a6429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Gentoo already sets -D_FORTIFY_SOURCE=2 by default in GCC (patched in), so
we need to avoid doing this in packages to avoid redefinition errors if
we try to upgrade to e.g. =3.
So, no effect on users, but important to stop issues w/ F_S=3.
--- a/config-scripts/cups-compiler.m4
+++ b/config-scripts/cups-compiler.m4
@@ -106,8 +106,8 @@ AS_IF([test -n "$GCC"], [
], [
# Otherwise use the Fortify enhancements to catch any unbounded
# string operations...
- CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
- CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
+ CFLAGS="$CFLAGS"
+ CXXFLAGS="$CXXFLAGS"
])
# Default optimization options...
|