mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: vsftpd: Honour upstream make flags.
* gnu/packages/ftp.scm (vsftpd)[arguments]: Add a new 'append-make-flags phase. Remove our now redundant "-pie" from LDFLAGS.
This commit is contained in:
parent
a841d8e8b3
commit
4049fa8e52
1 changed files with 8 additions and 1 deletions
|
@ -270,10 +270,17 @@ (define-public vsftpd
|
|||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:make-flags
|
||||
(list "LDFLAGS=-lcap -lcrypt -lpam -pie")
|
||||
(list "LDFLAGS=-lcap -lcrypt -lpam")
|
||||
#:tests? #f ; no test suite
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'append-make-flags
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
(("(CFLAGS|LDFLAGS)[[:blank:]]*=" _ variable)
|
||||
(format #f "UPSTREAM_~a +=" variable))
|
||||
(("\\$\\((CFLAGS|LDFLAGS)\\)" _ variable)
|
||||
(format #f "$(UPSTREAM_~a) $(~@*~a)" variable)))))
|
||||
(add-after 'unpack 'patch-installation-directory
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(substitute* "Makefile"
|
||||
|
|
Loading…
Reference in a new issue