File: link-with-dl.patch

package info (click to toggle)
cppunit 1.12.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,200 kB
  • sloc: cpp: 18,313; sh: 9,213; ansic: 2,973; makefile: 477; xml: 58; csh: 6
file content (34 lines) | stat: -rw-r--r-- 852 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Link against -ldl
  Link libcppunit with -ldl (thanks, Aurelien Jarno).  
  Add test case to check linking.  
Author: Steve M. Robbins <smr@debian.org>
Bug-Debian: http://bugs.debian.org/338252
Forwarded: no
Last-Update: 2011-12-09

--- /dev/null
+++ cppunit-1.12.1/src/cppunit/t_link.cpp
@@ -0,0 +1,8 @@
+/* This program simply tests that we can link against
+ * libcppunit.
+ */
+
+int main( int ac, char* av[] )
+{
+    return 0;
+}
--- cppunit-1.12.1.orig/src/cppunit/Makefile.am
+++ cppunit-1.12.1/src/cppunit/Makefile.am
@@ -63,5 +63,11 @@ libcppunit_la_SOURCES = \
 
 libcppunit_la_LDFLAGS= \
  -no-undefined -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
- -release $(LT_RELEASE)
+ -release $(LT_RELEASE) @LIBADD_DL@
 
+TESTS = t_link
+
+check_PROGRAMS = t_link
+
+t_link_SOURCES = t_link.cpp
+t_link_LDADD = libcppunit.la