guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gsm: Add the -fPIC compiler option.


From: guix-commits
Subject: branch master updated: gsm: Add the -fPIC compiler option.
Date: Sun, 05 Apr 2020 01:15:52 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 74c7f36  gsm: Add the -fPIC compiler option.
74c7f36 is described below

commit 74c7f367daa554cedeb5f02a00d1cd02acf1584b
Author: Maxim Cournoyer <address@hidden>
AuthorDate: Sun Apr 5 01:07:12 2020 -0400

    gsm: Add the -fPIC compiler option.
    
    This is necessary for building mediastream2 (a dependency of Linphone).
    
    * gnu/packages/audio.scm (gsm): Add the default CCFLAGS as a make flag, and
    prepend -fPIC to these.  Pass INSTALL_ROOT as a make flag as well, which
    removes the need to use substitute* in a phase.
---
 gnu/packages/audio.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index f368fed..6d29184 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -11,7 +11,7 @@
 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice 
<address@hidden>
 ;;; Copyright © 2018, 2020 Oleg Pykhalov <address@hidden>
 ;;; Copyright © 2018 okapi <address@hidden>
-;;; Copyright © 2018 Maxim Cournoyer <address@hidden>
+;;; Copyright © 2018, 2020 Maxim Cournoyer <address@hidden>
 ;;; Copyright © 2018 Clément Lassieur <address@hidden>
 ;;; Copyright © 2018 Brett Gilio <address@hidden>
 ;;; Copyright © 2018, 2019 Marius Bakke <address@hidden>
@@ -3356,14 +3356,14 @@ code, used in @code{libtoxcore}.")
     (build-system gnu-build-system)
     (arguments
      `(#:test-target "tst"
+       #:make-flags '("INSTALL_ROOT=%output"
+                      "CCFLAGS=-fPIC \
+-c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment") ;default options
        #:phases
        (modify-phases %standard-phases
          (add-before 'install 'pre-install
            (lambda _
              (let ((out (assoc-ref %outputs "out")))
-               (substitute* "Makefile"
-                 (("INSTALL_ROOT\t=")
-                  (string-append "INSTALL_ROOT\t=\t" out)))
                (mkdir-p (string-append out "/inc"))
                (mkdir-p (string-append out "/man"))
                (mkdir-p (string-append out "/man/man1"))



reply via email to

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