Discussion:
Drop -lcompat for OpenBSD
Christian Weisgerber
2013-12-02 21:44:42 UTC
Permalink
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*)
--
Christian "naddy" Weisgerber ***@mips.inka.de
Thorsten Glaser
2013-12-02 22:01:12 UTC
Permalink
Post by Christian Weisgerber
This is all
stuff that hasn't changed since the inception of OpenBSD.
In this case…
Post by Christian Weisgerber
Presumably the -lcompat requirement could be dropped for EkkoBSD
and MirBSD, too.
… this is true. (Though ekkoBSD has been dead for long years.)
Thanks naddy.

bye,
//mirabilos
--
Post by Christian Weisgerber
Hi, does anyone sell openbsd stickers by themselves and not packaged
with other products?
No, the only way I've seen them sold is for $40 with a free OpenBSD CD.
-- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc
Thomas Dickey
2013-12-02 23:47:58 UTC
Permalink
Post by Christian Weisgerber
This is all
stuff that hasn't changed since the inception of OpenBSD.
In this case

Post by Christian Weisgerber
Presumably the -lcompat requirement could be dropped for EkkoBSD
and MirBSD, too.

 this is true. (Though ekkoBSD has been dead for long years.)
Thanks naddy.
that's a simple change (I removed the entire case in my current changes)
--
Thomas E. Dickey <***@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
Loading...