bfe1072f0b
- Update to new upstream release 2.1.2 * modified dtd and xsl files to support inactive suites/tests * Added ability to deactivate suite/tests dynamically * Removed constraint that suite/test names be unique - Remove redundant tags/sections - Parallel build with %_smp_mflags - Add autotools BuildRequires for factory/12.2 - Fix use of implicitly defined function in source (do not declare that post-build-checks's output was wrong) - Add missing DT_NEEDED entry on ncurses OBS-URL: https://build.opensuse.org/request/show/103467 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cunit?expand=0&rev=6
49 lines
1.7 KiB
Diff
49 lines
1.7 KiB
Diff
From: Jan Engelhardt <jengelh@medozas.de>
|
|
Date: 2012-02-09 03:48:24.650731239 +0100
|
|
|
|
cunit 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 libcunit.la, libcunit.la must
|
|
use the .la files as objects, not the .lo files.
|
|
|
|
---
|
|
CUnit/Sources/Curses/Makefile.am | 1 +
|
|
CUnit/Sources/Makefile.am | 15 +++++----------
|
|
2 files changed, 6 insertions(+), 10 deletions(-)
|
|
|
|
Index: cunit/CUnit/Sources/Curses/Makefile.am
|
|
===================================================================
|
|
--- cunit.orig/CUnit/Sources/Curses/Makefile.am
|
|
+++ cunit/CUnit/Sources/Curses/Makefile.am
|
|
@@ -3,3 +3,4 @@
|
|
noinst_LTLIBRARIES = libcunitcurses.la
|
|
libcunitcurses_la_SOURCES = \
|
|
Curses.c
|
|
+libcunitcurses_la_LIBADD = -lncurses
|
|
Index: cunit/CUnit/Sources/Makefile.am
|
|
===================================================================
|
|
--- cunit.orig/CUnit/Sources/Makefile.am
|
|
+++ cunit/CUnit/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/libcunitbasic.la
|
|
+AUTOMATED_OBJECTS_SHARED = Automated/libcunitautomated.la
|
|
+CONSOLE_OBJECTS_SHARED = Console/libcunitconsole.la
|
|
+CURSES_OBJECTS_SHARED = Curses/libcunitcurses.la
|
|
+FRAMEWORK_OBJECTS_SHARED = Framework/libcunitfmk.la
|
|
|
|
FRAMEWORK_OBJECT_FILES_SHARED = $(FRAMEWORK_OBJECTS_SHARED)
|
|
FRAMEWORK_COMPILE_DIRS = Framework
|