bug-gnucap
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove termcap from linking procedure


From: William Goodspeed
Subject: Remove termcap from linking procedure
Date: Mon, 25 Apr 2022 17:17:35 +0800

It seems we no longer need to link termcap. I'm running Parabola GNU/Linux and
this caused error. After removing -ltermcap, it works.

Here's the patch:

diff --git a/lib/Make2.Debug b/lib/Make2.Debug
index b0e180a..bbe15d1 100644
--- a/lib/Make2.Debug
+++ b/lib/Make2.Debug
@@ -40,7 +40,7 @@ CCFLAGS = \
 #last line not in 4.1

 LIBS = \
--lreadline -ltermcap \
+-lreadline \
 -ldl

 LDFLAGS = -shared
diff --git a/lib/Make2.g++ b/lib/Make2.g++
index 7dd1598..5a93bf3 100644
--- a/lib/Make2.g++
+++ b/lib/Make2.g++
@@ -32,7 +32,7 @@ CCFLAGS = \
 -DUNIX -O3 -DNDEBUG -I. -I../include -I../../include -W

 LIBS = \
--lreadline -ltermcap \
+-lreadline \
 -ldl

 LDFLAGS = -shared
diff --git a/lib/configure b/lib/configure
index a10a76e..823ad5c 100755
--- a/lib/configure
+++ b/lib/configure
@@ -28,13 +28,13 @@ echo "CCFLAGS = -fPIC \\" >Make.ccflags
 echo "LIBS = -ldl \\" >Make.libs

 rm -f a.out
-c++ test_readline.cc -lreadline -ltermcap
+c++ test_readline.cc -lreadline
 if [ -f a.out ] ; then
     echo "using readline"
     echo "-DHAVE_LIBREADLINE \\" >>Make.ccflags
-    echo "-lreadline -ltermcap \\" >>Make.libs
+    echo "-lreadline \\" >>Make.libs
 else
-    echo "warning: either libtermcap or libreadline is missing - building 
without readline"
+    echo "warning: libreadline is missing - building without readline"
 fi
 rm -f a.out




reply via email to

[Prev in Thread] Current Thread [Next in Thread]