mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: gsm: Fix installation directory.
This is a follow-up commit to 74c7f367da
, which broke the installation of the
bin, lib and share artifacts.
* gnu/packages/audio.scm (gsm)[make-flags]: Programmatically build the
INSTALL_ROOT make flag so that the %output variable gets properly expanded.
Instead of repeating the default CCFLAGS values as a make flag...
[phases]: ...add "-fPIC" using substitutes* in a new add-fpic-ccflag phase.
This commit is contained in:
parent
95b800e67c
commit
5b05f8e965
1 changed files with 9 additions and 3 deletions
|
@ -3356,11 +3356,17 @@ (define-public gsm
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "tst"
|
`(#:test-target "tst"
|
||||||
#:make-flags '("INSTALL_ROOT=%output"
|
#:make-flags (list (string-append "INSTALL_ROOT=" %output))
|
||||||
"CCFLAGS=-fPIC \
|
|
||||||
-c -O2 -DNeedFunctionPrototypes=1 -Wall -Wno-comment") ;default options
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'add-fpic-ccflag
|
||||||
|
(lambda _
|
||||||
|
;; The -fPIC compiler option is needed when building
|
||||||
|
;; mediastreamer.
|
||||||
|
(substitute* "Makefile"
|
||||||
|
(("^CCFLAGS.*" all)
|
||||||
|
(string-append all "CCFLAGS += -fPIC")))
|
||||||
|
#t))
|
||||||
(add-before 'install 'pre-install
|
(add-before 'install 'pre-install
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((out (assoc-ref %outputs "out")))
|
(let ((out (assoc-ref %outputs "out")))
|
||||||
|
|
Loading…
Reference in a new issue