gdb: fix cygwin check in configure script
Avoid false positives if the search pattern "lose" is found in path descriptions in comments generated by the preprocessor. See <https://sourceware.org/bugzilla/show_bug.cgi?id=16152>. gdb/ 2013-11-27 Steffen Sledz <sledz@dresearch-fe.de> * configure.ac: Tighten Cygwin detection check. * configure: Rebuild.
This commit is contained in:
parent
908fa2aaed
commit
92a021debf
3 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-11-27 Steffen Sledz <sledz@dresearch-fe.de>
|
||||
|
||||
* configure: Rebuild.
|
||||
* configure.ac: fix cygwin detection check
|
||||
|
||||
2013-11-27 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* frame-unwind.c (frame_unwind_got_optimized): Use the type of the
|
||||
|
|
2
gdb/configure
vendored
2
gdb/configure
vendored
|
@ -12446,7 +12446,7 @@ lose
|
|||
#endif
|
||||
_ACEOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
$EGREP "lose" >/dev/null 2>&1; then :
|
||||
$EGREP "^lose$" >/dev/null 2>&1; then :
|
||||
gdb_cv_os_cygwin=yes
|
||||
else
|
||||
gdb_cv_os_cygwin=no
|
||||
|
|
|
@ -1877,7 +1877,7 @@ AC_SUBST(WERROR_CFLAGS)
|
|||
|
||||
# In the Cygwin environment, we need some additional flags.
|
||||
AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin,
|
||||
[AC_EGREP_CPP(lose, [
|
||||
[AC_EGREP_CPP(^lose$, [
|
||||
#if defined (__CYGWIN__) || defined (__CYGWIN32__)
|
||||
lose
|
||||
#endif],[gdb_cv_os_cygwin=yes],[gdb_cv_os_cygwin=no])])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue