[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LYNX-DEV Porting lynx 2.7 to NetBSD 1.2
From: |
Marc Baudoin |
Subject: |
LYNX-DEV Porting lynx 2.7 to NetBSD 1.2 |
Date: |
Fri, 14 Feb 1997 17:19:10 +0100 |
Hi,
I've just compiled lynx 2.7 on my NetBSD 1.2 box and I have some comments
about the NetBSD section.
First, you should use gcc to compile it instead of cc so it would use a
newer gcc if it's installed or the system's compiler (/usr/bin/gcc is the
same as /usr/bin/cc) if it's not.
Second, ncurses is not bundled with NetBSD so you shouldn't use
-I/usr/include/ncurses in the Makefile. Anyway, recent ncurses (I use
1.9.9e) don't put their include files in /usr/local/include/ncurses
anymore. Instead, they put curses.h in /usr/local/include directly. The
src/LYCurses.h has to be changed also.
Here's the patch I've made. Consider applying it for the next pre release
of lynx 2.7 :-)
diff -ru ../lynx2-7/Makefile ./Makefile
--- ../lynx2-7/Makefile Mon Feb 3 19:51:48 1997
+++ ./Makefile Fri Feb 14 17:12:17 1997
@@ -437,9 +437,8 @@
# NetBSD doesn't have or need ranlib. (ignore the error message about that :)
netbsd-ncurses:
cd WWW/Library/netbsd; $(MAKE) LYFLAGS="$(SITE_LYDEFS)"
- cd src; $(MAKE) all CC="cc" MCFLAGS="-O -DFANCY_CURSES -DNCURSES \
+ cd src; $(MAKE) all CC="gcc" MCFLAGS="-O -DFANCY_CURSES -DNCURSES \
-DUNIX -DNO_CUSERID -I../$(WWWINC) $(SITE_DEFS) \
- -I/usr/include/ncurses" \
LIBS="-lncurses -lcompat \
$(WAISLIB) $(SOCKSLIB) $(SITE_LIBS)" \
WWWLIB="../WWW/Library/netbsd/libwww.a"
Only in .: lynx
diff -ru ../lynx2-7/src/LYCurses.h ./src/LYCurses.h
--- ../lynx2-7/src/LYCurses.h Mon Dec 9 15:37:18 1996
+++ ./src/LYCurses.h Fri Feb 14 16:53:22 1997
@@ -33,7 +33,7 @@
#ifdef NCURSES
# ifndef NCURSESHEADER
-# include <ncurses/curses.h>
+# include <curses.h>
# else
# ifdef __NetBSD__
# include <ncurses/ncurses.h>
--
Marc Baudoin -=- <address@hidden>
Security On-Line software
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- LYNX-DEV Porting lynx 2.7 to NetBSD 1.2,
Marc Baudoin <=