Skip to content
Snippets Groups Projects
Commit d8562ddc authored by chrfranke's avatar chrfranke
Browse files

configure.ac: fix stack-protector detection.

Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to check for
stack-protector availability as some compilers could missed the
needed library (-lssp or -lssp_nonshared) at linking step.

Patch provided by Fabrice Fontaine.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5032 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 689181aa
Branches
No related tags found
No related merge requests found
$Id$ $Id$
2020-02-25 Fabrice Fontaine <fontaine.fabrice@gmail.com>
configure.ac: fix stack-protector detection.
Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to check for
stack-protector availability as some compilers could missed the
needed library (-lssp or -lssp_nonshared) at linking step.
2020-01-11 Christian Franke <franke@computer.org> 2020-01-11 Christian Franke <franke@computer.org>
dev_jmb39x_raid.cpp: Add '-d jmb39x-q,...' device type for JMB39x dev_jmb39x_raid.cpp: Add '-d jmb39x-q,...' device type for JMB39x
......
...@@ -770,7 +770,7 @@ if test "$GXX" = "yes"; then ...@@ -770,7 +770,7 @@ if test "$GXX" = "yes"; then
AC_MSG_CHECKING([whether $CXX supports $option]) AC_MSG_CHECKING([whether $CXX supports $option])
save_CXXFLAGS=$CXXFLAGS save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS $option" CXXFLAGS="$CXXFLAGS $option"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [res=yes], [res=no; CXXFLAGS=$save_CXXFLAGS]) AC_LINK_IFELSE([AC_LANG_PROGRAM()], [res=yes], [res=no; CXXFLAGS=$save_CXXFLAGS])
AC_MSG_RESULT([$res]) AC_MSG_RESULT([$res])
done done
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment