guix-commits
[Top][All Lists]
Advanced

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

12/66: gnu: cppunit: Explicitly link with libdl.


From: Manolis Fragkiskos Ragkousis
Subject: 12/66: gnu: cppunit: Explicitly link with libdl.
Date: Thu, 21 May 2015 12:51:50 +0000

phant0mas pushed a commit to branch wip-hurd
in repository guix.

commit c5a123949f9003006f4a9b52c5aa8a3bacba7286
Author: Andreas Enge <address@hidden>
Date:   Sun May 3 12:53:38 2015 +0200

    gnu: cppunit: Explicitly link with libdl.
    
    * gnu/packages/check.scm (cppunit)[arguments]: Add #:make-flags.
---
 gnu/packages/check.scm |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 3e686cc..5349ede 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2012 Nikita Karetnikov <address@hidden>
 ;;; Copyright © 2015 Paul van der Walt <address@hidden>
 ;;; Copyright © 2015 Eric Bavier <address@hidden>
+;;; Copyright © 2015 Andreas Enge <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -89,12 +90,18 @@ with a flexible variety of user interfaces.")
     (version "1.12.1")
     (source (origin
              (method url-fetch)
-              (uri (string-append "mirror://sourceforge/cppunit/" name "/" 
+              (uri (string-append "mirror://sourceforge/cppunit/" name "/"
                                   name "-"
                                   version ".tar.gz"))
              (sha256
               (base32
                "0jm49v5rmc5qw34vqs56gy8xja1dhci73bmh23cig4kcir6a0a5c"))))
+    ;; Explicitly link with libdl. This is expected to be done by packages
+    ;; relying on cppunit for their tests. However, not all of them do.
+    ;; If we added the linker flag to such packages, we would pollute all
+    ;; binaries, not only those used for testing.
+    (arguments
+     `(#:make-flags '("LDFLAGS=-ldl")))
     (build-system gnu-build-system)
     (home-page "http://sourceforge.net/projects/cppunit/";)
     (synopsis "Unit testing framework for C++")



reply via email to

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