Christian Weisgerber
2013-12-02 21:44:42 UTC
OpenBSD is in the process of phasing out libcompat. Lynx's configure
script unconditionally adds -lcompat on OpenBSD, which isn't necessary
and should be removed.
The functions that configure picks up from libcompat are ftime()
and cuserid(). ftime() isn't used since it only serves as a fallback
to gettimeofday(). cuserid() is potentially used, but in its absence
the code falls back to getlogin(), which is just fine. This is all
stuff that hasn't changed since the inception of OpenBSD.
Presumably the -lcompat requirement could be dropped for EkkoBSD
and MirBSD, too.
--- lynx2-8-8/configure.in.orig 2013-11-29 01:52:56.000000000 +0100
+++ lynx2-8-8/configure.in 2013-12-02 22:34:58.000000000 +0100
@@ -291,7 +291,7 @@
next*)
TRY_CFLAGS="$TRY_CFLAGS -DNEXT"
;;
-openbsd* | ekkobsd* | mirbsd*)
+ekkobsd* | mirbsd*)
LIBS="$LIBS -lcompat"
;;
osf4*)
script unconditionally adds -lcompat on OpenBSD, which isn't necessary
and should be removed.
The functions that configure picks up from libcompat are ftime()
and cuserid(). ftime() isn't used since it only serves as a fallback
to gettimeofday(). cuserid() is potentially used, but in its absence
the code falls back to getlogin(), which is just fine. This is all
stuff that hasn't changed since the inception of OpenBSD.
Presumably the -lcompat requirement could be dropped for EkkoBSD
and MirBSD, too.
--- lynx2-8-8/configure.in.orig 2013-11-29 01:52:56.000000000 +0100
+++ lynx2-8-8/configure.in 2013-12-02 22:34:58.000000000 +0100
@@ -291,7 +291,7 @@
next*)
TRY_CFLAGS="$TRY_CFLAGS -DNEXT"
;;
-openbsd* | ekkobsd* | mirbsd*)
+ekkobsd* | mirbsd*)
LIBS="$LIBS -lcompat"
;;
osf4*)
--
Christian "naddy" Weisgerber ***@mips.inka.de
Christian "naddy" Weisgerber ***@mips.inka.de