Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #3576: gdb-8.0.1-sis-cygwin.diff

File gdb-8.0.1-sis-cygwin.diff, 2.1 KB (added by Joel Sherrill, on 10/30/18 at 23:17:00)

Patch for sis on Cygwin

  • sim/erc32/configure.ac

    sim/erc32/Changelog:
    2018-10-30  Joel Sherrill <joel@rtems.org>
    
            * configure.ac: Remove the Cygwin-specific libtermcap.a hack
            and use the standard logic to determine which library to use.
            * configure: Regenerate.
    
    diff -ur gdb-8.0.1-orig/sim/erc32/configure.ac gdb-8.0.1/sim/erc32/configure.ac
    old new  
    2727lose
    2828#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
    2929
     30# Keep in sync with gdb's configure.ac list.
     31AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
     32  [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
    3033if test x$sim_cv_os_cygwin = xyes; then
    31   TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
    32 else
    33   # Keep in sync with gdb's configure.ac list.
    34   AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
    35     [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
     34  TERMCAP="${TERMCAP} -luser32"
    3635fi
    3736AC_SUBST(TERMCAP)
    3837
  • sim/erc32/configure

    diff -ur gdb-8.0.1-orig/sim/erc32/configure gdb-8.0.1/sim/erc32/configure
    old new  
    1350013500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
    1350113501$as_echo "$sim_cv_os_cygwin" >&6; }
    1350213502
    13503 if test x$sim_cv_os_cygwin = xyes; then
    13504   TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
    13505 else
    13506   # Keep in sync with gdb's configure.ac list.
    13507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
     13503
     13504# Keep in sync with gdb's configure.ac list.
     13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
    1350813506$as_echo_n "checking for library containing tgetent... " >&6; }
    1350913507if test "${ac_cv_search_tgetent+set}" = set; then :
    1351013508  $as_echo_n "(cached) " >&6
     
    1356213560  TERMCAP=""
    1356313561fi
    1356413562
     13563if test x$sim_cv_os_cygwin = xyes; then
     13564  TERMCAP="${TERMCAP} -luser32"
    1356513565fi
    1356613566
    1356713567