diff mbox

[5-6/12] New configure option --enable-espf=(all|ssp|pie|no)

Message ID 4114289.iu7eDCECdC@laptop1.gw.ume.nu
State New
Headers show

Commit Message

Magnus Granberg Sept. 7, 2012, 2:19 p.m. UTC
Patch: config.in.patch
Add ENABLE_ESPF*

Patch: gcc.c.patch
Add espf_cpp_unique_options to *cpp_unique_options

Gentoo Hardened Project
Magnus Granberg

Comments

Joseph Myers Sept. 7, 2012, 6:45 p.m. UTC | #1
On Fri, 7 Sep 2012, Magnus Granberg wrote:

> Patch: config.in.patch
> Add ENABLE_ESPF*

You don't patch config.in manually.  You regenerate it with autoheader 
after editing configure.ac.
diff mbox

Patch

--- a/gcc/gcc.c	2012-02-28 18:31:38.000000000 +0100
+++ b/gcc/gcc.c	2012-08-01 03:10:01.060123826 +0200
@@ -756,8 +756,12 @@  static const char *cpp_unique_options =
  %{!iplugindir*:%{fplugin*:%:find-plugindir()}}\
  %{H} %C %{D*&U*&A*} %{i*} %Z %i\
  %{fmudflap:-D_MUDFLAP -include mf-runtime.h}\
- %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\
- %{E|M|MM:%W{o*}}";
+ %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} "
+ /* Needed by configure --enable-espf */
+ #ifdef ENABLE_ESPF_FORTIFY
+"%(espf_cpp_unique_options) "
+#endif
+"%{E|M|MM:%W{o*}}";
 
 /* This contains cpp options which are common with cc1_options and are passed
    only when preprocessing only to avoid duplication.  We pass the cc1 spec