/[svn]/hopm/trunk/m4/gcc_stack_protect.m4
ViewVC logotype

Diff of /hopm/trunk/m4/gcc_stack_protect.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6114 by michael, Thu Jun 11 12:31:29 2015 UTC revision 6115 by michael, Thu Jun 11 13:27:14 2015 UTC
# Line 45  AC_DEFUN([GCC_STACK_PROTECT_LIB],[ Line 45  AC_DEFUN([GCC_STACK_PROTECT_LIB],[
45    AC_CACHE_CHECK([whether libssp exists], ssp_cv_lib,    AC_CACHE_CHECK([whether libssp exists], ssp_cv_lib,
46      [ssp_old_libs="$LIBS"      [ssp_old_libs="$LIBS"
47       LIBS="$LIBS -lssp"       LIBS="$LIBS -lssp"
48       AC_TRY_LINK(,, ssp_cv_lib=yes, ssp_cv_lib=no)       AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], [ssp_cv_lib=yes], [ssp_cv_lib=no])
49       LIBS="$ssp_old_libs"       LIBS="$ssp_old_libs"
50      ])      ])
51    if test $ssp_cv_lib = yes; then    if test $ssp_cv_lib = yes; then
# Line 60  AC_DEFUN([GCC_STACK_PROTECT_CC],[ Line 60  AC_DEFUN([GCC_STACK_PROTECT_CC],[
60        ssp_cv_cc,        ssp_cv_cc,
61        [ssp_old_cflags="$CFLAGS"        [ssp_old_cflags="$CFLAGS"
62         CFLAGS="$CFLAGS -fstack-protector-strong"         CFLAGS="$CFLAGS -fstack-protector-strong"
63         AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no)         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [ssp_cv_cc=yes], [ssp_cv_cc=no])
64         CFLAGS="$ssp_old_cflags"         CFLAGS="$ssp_old_cflags"
65        ])        ])
66      if test $ssp_cv_cc = yes; then      if test $ssp_cv_cc = yes; then
# Line 72  AC_DEFUN([GCC_STACK_PROTECT_CC],[ Line 72  AC_DEFUN([GCC_STACK_PROTECT_CC],[
72          ssp_cv_cc,          ssp_cv_cc,
73          [ssp_old_cflags="$CFLAGS"          [ssp_old_cflags="$CFLAGS"
74           CFLAGS="$CFLAGS -fstack-protector"           CFLAGS="$CFLAGS -fstack-protector"
75           AC_TRY_COMPILE(,, ssp_cv_cc=yes, ssp_cv_cc=no)           AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [ssp_cv_cc=yes], [ssp_cv_cc=no])
76           CFLAGS="$ssp_old_cflags"           CFLAGS="$ssp_old_cflags"
77          ])          ])
78        if test $ssp_cv_cc = yes; then        if test $ssp_cv_cc = yes; then
# Line 90  AC_DEFUN([GCC_STACK_PROTECT_CXX],[ Line 90  AC_DEFUN([GCC_STACK_PROTECT_CXX],[
90        ssp_cv_cxx,        ssp_cv_cxx,
91        [ssp_old_cxxflags="$CXXFLAGS"        [ssp_old_cxxflags="$CXXFLAGS"
92         CXXFLAGS="$CXXFLAGS -fstack-protector-strong"         CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
93         AC_TRY_COMPILE(,, ssp_cv_cxx=yes, ssp_cv_cxx=no)         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [ssp_cv_cxx=yes], [ssp_cv_cxx=no])
94         CXXFLAGS="$ssp_old_cxxflags"         CXXFLAGS="$ssp_old_cxxflags"
95        ])        ])
96      if test $ssp_cv_cxx = yes; then      if test $ssp_cv_cxx = yes; then
# Line 102  AC_DEFUN([GCC_STACK_PROTECT_CXX],[ Line 102  AC_DEFUN([GCC_STACK_PROTECT_CXX],[
102          ssp_cv_cxx,          ssp_cv_cxx,
103          [ssp_old_cxxflags="$CXXFLAGS"          [ssp_old_cxxflags="$CXXFLAGS"
104           CXXFLAGS="$CXXFLAGS -fstack-protector"           CXXFLAGS="$CXXFLAGS -fstack-protector"
105           AC_TRY_COMPILE(,, ssp_cv_cxx=yes, ssp_cv_cxx=no)           AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [ssp_cv_cxx=yes], [ssp_cv_cxx=no])
106           CXXFLAGS="$ssp_old_cxxflags"           CXXFLAGS="$ssp_old_cxxflags"
107          ])          ])
108        if test $ssp_cv_cxx = yes; then        if test $ssp_cv_cxx = yes; then

Legend:
Removed from v.6114  
changed lines
  Added in v.6115

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28