Subject: lib/1371: Missing -I in libterm Makefile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Mark_Weaver@brown.edu>
List: netbsd-bugs
Date: 08/18/1995 05:28:06
>Number:         1371
>Category:       lib
>Synopsis:       Missing -I in libterm Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   mhw
>Arrival-Date:   Fri Aug 18 05:35:06 1995
>Last-Modified:
>Originator:     Mark Weaver
>Organization:
Brown University Department of Computer Science
>Release:        NetBSD-current 8/11/95
>Environment:
NetBSD cis-ts4-slip4.cis.brown.edu 1.0A NetBSD 1.0A (WEAVER) #0: Fri Aug 11 19:26:06 EDT 1995     mhw@cis-ts4-slip9.cis.brown.edu:/usr/src/sys/arch/i386/compile/WEAVER i386

>Description:
CFLAGS in the libterm Makefile should have "-I${.CURDIR}/../libcurses"
since termcap.c includes curses.h.  Otherwise it will use a possibly
out-of-date curses.h which was last installed in /usr/include.

>How-To-Repeat:

>Fix:
diff -u  src/lib/libterm/Makefile.mhw1 src/lib/libterm/Makefile
--- src/lib/libterm/Makefile.mhw1	Wed Mar  1 22:21:28 1995
+++ src/lib/libterm/Makefile	Mon Jul 17 21:28:44 1995
@@ -2,7 +2,7 @@
 #	@(#)Makefile	8.1 (Berkeley) 6/4/93
 
 LIB=	termcap
-CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D
+CFLAGS+=-DCM_N -DCM_GT -DCM_B -DCM_D -I${.CURDIR}/../libcurses
 SRCS=	termcap.c tgoto.c tputs.c
 
 MAN=	termcap.3
>Audit-Trail:
>Unformatted: