gnu: xl2tpd: Fix build.
* gnu/packages/vpn.scm (xl2tpd)[arguments]: Substitute hardcoded pppd path instead of trying to set CFLAGS variable.
This commit is contained in:
parent
6e31d6f3c4
commit
0919d6148f
1 changed files with 4 additions and 4 deletions
|
@ -648,10 +648,10 @@ public keys and can roam across IP addresses.")
|
||||||
(delete 'configure) ;no configure script
|
(delete 'configure) ;no configure script
|
||||||
(add-before 'build 'setup-environment
|
(add-before 'build 'setup-environment
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(setenv "CFLAGS"
|
(substitute* "l2tp.h"
|
||||||
(string-append "-DPPPD=\""
|
(("/usr/sbin/pppd")
|
||||||
(assoc-ref inputs "ppp")
|
(string-append (assoc-ref inputs "ppp")
|
||||||
"/sbin/pppd\""))
|
"/sbin/pppd")))
|
||||||
(setenv "KERNELSRC"
|
(setenv "KERNELSRC"
|
||||||
(assoc-ref inputs "linux-libre-headers"))
|
(assoc-ref inputs "linux-libre-headers"))
|
||||||
#t)))
|
#t)))
|
||||||
|
|
Reference in a new issue