RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Pinto Elia
  Root:   /v/rpm/cvs                       Email:  [email protected]
  Module: rpm                              Date:   29-Sep-2009 19:26:30
  Branch: HEAD                             Handle: 2009092917262900

  Modified files:
    rpm                     CHANGES configure.ac

  Log:
    add security CFLAGS for GCC if supported

  Summary:
    Revision    Changes     Path
    1.3133      +1  -0      rpm/CHANGES
    2.407       +12 -1      rpm/configure.ac
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.3132 -r1.3133 CHANGES
  --- rpm/CHANGES       29 Sep 2009 14:43:59 -0000      1.3132
  +++ rpm/CHANGES       29 Sep 2009 17:26:29 -0000      1.3133
  @@ -1,5 +1,6 @@
   
   5.2b1 -> 5.3a1
  +    - devzero2000: add security CFLAGS for GCC if supported
       - jbj: dbi: configure new indices with 4b join keys and duplicates.
       - jbj: dbi: generate additional indices.
       - jbj: dbi: add db->associate_foreign.
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/configure.ac
  ============================================================================
  $ cvs diff -u -r2.406 -r2.407 configure.ac
  --- rpm/configure.ac  28 Sep 2009 16:46:47 -0000      2.406
  +++ rpm/configure.ac  29 Sep 2009 17:26:29 -0000      2.407
  @@ -191,7 +191,18 @@
   dnl # -fno-delete-null-pointer as the kernel does 
http://patchwork.kernel.org/patch/36060/
   if test ".`$CC --version 2>&1 | grep 'GCC'`" != .; then
   dnl # GNU GCC (usually "gcc")
  -    CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -D_FORTIFY_SOURCE=2 
-fexceptions"
  + for c in -fno-delete-null-pointer-checks -D_FORTIFY_SOURCE=2 
-fstack-protector -fexceptions
  + do
  + my_save_cflags="$CFLAGS"
  + CFLAGS=$c
  + AC_MSG_CHECKING([whether GCC supports $c])
  + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
  +    [AC_MSG_RESULT([yes])]
  +    [my_cflags=$c],
  +    [AC_MSG_RESULT([no])]
  + )
  + CFLAGS="$my_save_cflags $my_cflags"
  + done
   fi
   AC_ARG_ENABLE(build-gcov,
       AS_HELP_STRING([--enable-build-gcov], [build RPM instrumented for 
gcov]), [dnl
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to