gnu: iniparser: Use #:make-flags.
* gnu/packages/samba.scm (iniparser)[arguments]: Use #:make-flags to set ‘CC’ instead of patching the Makefile. Remove fruitless SYMLINK call.
This commit is contained in:
parent
33fa13eac1
commit
cf52c9255d
|
@ -104,18 +104,19 @@ the Linux kernel CIFS client.")
|
||||||
"1flj7srvh2hp9ls96qz922bklyhw7f27mmn23b16839zpdjddfz0"))))
|
"1flj7srvh2hp9ls96qz922bklyhw7f27mmn23b16839zpdjddfz0"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:make-flags
|
||||||
|
(list "CC=gcc")
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* '("Makefile" "test/Makefile")
|
(substitute* '("Makefile" "test/Makefile")
|
||||||
(("/usr/lib")
|
(("/usr/lib")
|
||||||
(string-append (assoc-ref outputs "out") "/lib"))
|
(string-append (assoc-ref outputs "out") "/lib")))))
|
||||||
(("\\?= gcc") "= gcc"))))
|
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
(and (zero? (system* "make" "libiniparser.so"))
|
(apply invoke "make" "libiniparser.so"
|
||||||
(symlink "libiniparser.so.0" "libiniparser.so"))))
|
make-flags)))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Reference in New Issue