File bcunit-link-ncurses.patch of Package bcunit

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2012-02-09 03:48:24.650731239 +0100

bcunit uses ncurses, therefore, link with ncurses. Otherwise building
this can fail if e.g. -Wl,--no-undefined is used.

And for -lncurses to trickle down into libbcunit.la, libcunit.la must
use the .la files as objects, not the .lo files.

---
 BCUnit/Sources/Curses/Makefile.am |    1 +
 BCUnit/Sources/Makefile.am        |   15 +++++----------
 2 files changed, 6 insertions(+), 10 deletions(-)

Index: bcunit/BCUnit/Sources/Curses/Makefile.am
===================================================================
--- bcunit.orig/BCUnit/Sources/Curses/Makefile.am
+++ bcunit/BCUnit/Sources/Curses/Makefile.am
@@ -3,3 +3,4 @@
 noinst_LTLIBRARIES = libbcunitcurses.la
 libbcunitcurses_la_SOURCES = \
 	Curses.c
+libbcunitcurses_la_LIBADD = -lncurses
Index: bcunit/BCUnit/Sources/Makefile.am
===================================================================
--- bcunit.orig/BCUnit/Sources/Makefile.am
+++ bcunit/BCUnit/Sources/Makefile.am
@@ -1,15 +1,10 @@
 ## Process this file with automake to produce Makefile.in
 
-BASIC_OBJECTS_SHARED = Basic/Basic.lo
-AUTOMATED_OBJECTS_SHARED = Automated/Automated.lo
-CONSOLE_OBJECTS_SHARED = Console/Console.lo
-CURSES_OBJECTS_SHARED = Curses/Curses.lo
-FRAMEWORK_OBJECTS_SHARED = \
-	Framework/CUError.lo \
-	Framework/MyMem.lo \
-	Framework/TestDB.lo \
-	Framework/TestRun.lo \
-	Framework/Util.lo
+BASIC_OBJECTS_SHARED = Basic/libbcunitbasic.la
+AUTOMATED_OBJECTS_SHARED = Automated/libbcunitautomated.la
+CONSOLE_OBJECTS_SHARED = Console/libbcunitconsole.la
+CURSES_OBJECTS_SHARED = Curses/libbcunitcurses.la
+FRAMEWORK_OBJECTS_SHARED = Framework/libbcunitfmk.la
 
 FRAMEWORK_OBJECT_FILES_SHARED = $(FRAMEWORK_OBJECTS_SHARED)
 FRAMEWORK_COMPILE_DIRS = Framework