Module Name: src
Committed By: hans
Date: Sat May 8 23:18:44 UTC 2010
Modified Files:
src/tools/gdb: Makefile
Log Message:
Fix tools build on Solaris with MKCROSSGDB=YES.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/tools/gdb/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/gdb/Makefile
diff -u src/tools/gdb/Makefile:1.16 src/tools/gdb/Makefile:1.17
--- src/tools/gdb/Makefile:1.16 Wed Dec 23 20:17:13 2009
+++ src/tools/gdb/Makefile Sat May 8 23:18:44 2010
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2009/12/23 20:17:13 mrg Exp $
+# $NetBSD: Makefile,v 1.17 2010/05/08 23:18:44 hans Exp $
.include <bsd.own.mk>
@@ -33,6 +33,15 @@
bash_cv_func_strcoll_broken=no \
bash_cv_must_reinstall_sighandlers=no
+# Recent versions of Solaris have ncurses, but they hide the lib in an
+# odd directory. Prevent configure from finding the ncurses headers,
+# Solaris curses is sufficient.
+.if ${BUILD_OSTYPE} == "SunOS"
+CONFIGURE_ENV+= ac_cv_header_ncurses_h=no \
+ ac_cv_header_ncurses_ncurses_h=no \
+ ac_cv_header_ncurses_term_h=no
+.endif
+
# Disable sim unless it's known to work (configure's default is to
# enable sim if supported).
CONFIGURE_ARGS_SIM=