fortify_source_fix.2012_10_08.patch

application/octet-stream

Filename: fortify_source_fix.2012_10_08.patch
Type: application/octet-stream
Part: 0
Message: Re: [COMMITTERS] pgsql: Disable _FORTIFY_SOURCE with ICC

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
src/include/port/linux.h 8 0
src/template/linux 0 6
diff src/include/port/linux.h
index bcaa42d..f4bf277
*** a/src/include/port/linux.h
--- b/src/include/port/linux.h
***************
*** 20,22 ****
--- 20,30 ----
   * filesystems, because those don't support O_DIRECT.
   */
  #define PLATFORM_DEFAULT_SYNC_METHOD	SYNC_METHOD_FDATASYNC
+ 
+ /*
+  * Many distributors use this, so we might as well see the warnings as
+  * well.  ICC doesn't work when this is enabled.
+  */
+ #if !defined(__ICC) && __OPTIMIZE__
+ #define _FORTIFY_SOURCE 2
+ #endif
diff src/template/linux
index fd509d9..3eb5ad2
*** a/src/template/linux
--- b/src/template/linux
***************
*** 3,14 ****
  # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
  CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
  
- # Many distributors use this, so we might as well see the warnings as
- # well.  ICC doesn't work when this is enabled.
- if test "$ICC" != "yes"; then
-   CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
- fi
- 
  # If --enable-profiling is specified, we need -DLINUX_PROFILE
  PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
  
--- 3,8 ----