The -D_FORTIFY_SOURCE=2 macro is added with -Wp,-D_FORTIFY_SOURCE=2. The only
notes as to why that I can find are:
commit 1518ff2d14377c05ecf7cf9428e42964516883b4
Author: Elliot Lee <sopwith(a)redhat.com>
Date: Wed Feb 9 15:09:11 2005 +0000
Fix java builds
+* Wed Feb 9 2005 Elliot Lee <sopwith(a)redhat.com> 8.0.33-1
+- Change -D to -Wp,-D to make java happy
I've testing building java with just the -D version, and it seems fine:
https://copr.fedorainfracloud.org/coprs/orion/fortify/builds/
So I'd like to change it back. The reason is that ccache does not handle -Wp
options well, and it puts it out of "direct-mode" which triggers an extra run
of the pre-processor.
Anyone else have any thoughts on the matter, or remember what the issue was?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane orion(a)nwra.com
Boulder, CO 80301
http://www.nwra.com