public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* sim/erc32 on Cygwin
@ 2018-10-24 16:31 Joel Sherrill
  0 siblings, 0 replies; only message in thread
From: Joel Sherrill @ 2018-10-24 16:31 UTC (permalink / raw)
  To: gdb

Hi

I am building sparc-rtems tools on Cygwin and ran into an issue with the
following bit of probe code in sim/erc32/configure.ac:

============================
if test x$sim_cv_os_cygwin = xyes; then
  TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo
../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
else
  # Keep in sync with gdb's configure.ac list.
  AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
    [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
fi
AC_SUBST(TERMCAP)
============================

Cygwin no longer has libtermcap but has libncurses.

Would it be OK to do something like this:

  AC_SEARCH_LIBS(....)
  if cygwin
    add -luser32
  AC_SUBST

Any thoughts that this wouldn't be sufficiently portable?

Thanks.

--joel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-24 16:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-24 16:31 sim/erc32 on Cygwin Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).