Re: _FORTIFY_SOURCE by default?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: _FORTIFY_SOURCE by default?
Date: 2012-09-26 02:34:55
Message-ID: 1348626895.13797.8.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2012-09-17 at 23:10 -0400, Tom Lane wrote:
> > I had suggested to put it into src/include/port/linux.h
>
> OK, that's probably reasonable.

It turns out that doesn't work because port.h is included after all the
interesting libc header files (stdio.h etc.).

I think the best place to put it is going to be src/template/linux.
That would mirror the existing practice of putting it on the compiler
command line.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hitoshi Harada 2012-09-26 04:08:07 Re: htup header reorganization breaks many extension modules
Previous Message Joachim Wieland 2012-09-26 02:01:13 Review for pg_dump: Sort overloaded functions in deterministic order