From 425ccf1ac1a9477421bb817e6c6739f08392a18b Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Thu, 23 Nov 2006 05:13:45 +0000 Subject: [PATCH] - This patch fixes detecting library providing termcap functions, so packages using ocaml have no problem with as-needed flag Changed files: ocaml-as_needed.patch -> 1.1 --- ocaml-as_needed.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ocaml-as_needed.patch diff --git a/ocaml-as_needed.patch b/ocaml-as_needed.patch new file mode 100644 index 0000000..53f2c8f --- /dev/null +++ b/ocaml-as_needed.patch @@ -0,0 +1,11 @@ +--- ocaml-3.09.2/configure.orig 2006-11-23 03:30:41.000000000 +0000 ++++ ocaml-3.09.2/configure 2006-11-23 03:31:14.000000000 +0000 +@@ -751,7 +751,7 @@ + # For the terminfo module + + if test "$withcurses" = "yes"; then +- for libs in "" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do ++ for libs in "" "-ltinfo" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do + if sh ./hasgot $libs tgetent tgetstr tgetnum tputs; then + echo "termcap functions found (with libraries '$libs')" + echo "#define HAS_TERMCAP" >> s.h -- 2.43.0