Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org, Peter Geoghegan <peter@2ndquadrant.com>
Date: 2012-10-05T03:37:58Z
Lists: pgsql-hackers
I wrote:
> I've seen this warning in recent Fedora builds, though not on my F16
> production box.  Some googling suggests the locution

> #if __OPTIMIZE__
> #define _FORTIFY_SOURCE 2
> #endif

> but I've not tested that.

A bit later: testing on an F17 box (glibc-2.15-56.fc17.x86_64)
confirms Peter G's complaint, and also confirms that putting
the above into port/linux.h (instead of the template file) fixes the
problem.  Don't know how to disable it on ICC, but I suppose there's
some way to test for ICC via an #if.

			regards, tom lane


Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Disable _FORTIFY_SOURCE with ICC