mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
77704cb13e
commit
74c7f367da
1 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@
|
|||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;; Copyright © 2018, 2020 Oleg Pykhalov <go.wigust@gmail.com>
|
||||
;;; Copyright © 2018 okapi <okapi@firemail.cc>
|
||||
;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2018, 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
|
||||
;;; Copyright © 2018 Brett Gilio <brettg@gnu.org>
|
||||
;;; Copyright © 2018, 2019 Marius Bakke <mbakke@fastmail.com>
|
||||
|
@ -3356,14 +3356,14 @@ (define-public gsm
|
|||
(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"))
|
||||
|
|
Loading…
Reference in a new issue