3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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:
Mathieu Othacehe 2020-06-22 16:46:09 +02:00
parent 6e31d6f3c4
commit 0919d6148f
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -648,10 +648,10 @@ public keys and can roam across IP addresses.")
(delete 'configure) ;no configure script
(add-before 'build 'setup-environment
(lambda* (#:key inputs #:allow-other-keys)
(setenv "CFLAGS"
(string-append "-DPPPD=\""
(assoc-ref inputs "ppp")
"/sbin/pppd\""))
(substitute* "l2tp.h"
(("/usr/sbin/pppd")
(string-append (assoc-ref inputs "ppp")
"/sbin/pppd")))
(setenv "KERNELSRC"
(assoc-ref inputs "linux-libre-headers"))
#t)))