mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
gnu: libndp: Fix cross-compile.
* gnu/packages/networking.scm (libndp) [native-inputs]: When cross-compile add pkg-config, libtool, gettext-minimal, autoconf, automake. [arguments]: When cross-compile, add phase to fix rpl_malloc undefined references. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
2d6c4e7198
commit
f8e3e02b98
1 changed files with 20 additions and 0 deletions
|
@ -1474,6 +1474,26 @@ (define-public libndp
|
|||
(base32
|
||||
"0ay0n0d85254zdmv8znmn399gfiqpk6ga0jwdwa7ylpbw9pbdzw8"))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
(if (%current-target-system)
|
||||
(list pkg-config
|
||||
libtool
|
||||
gettext-minimal
|
||||
autoconf automake)
|
||||
'()))
|
||||
(arguments
|
||||
(if (%current-target-system)
|
||||
(list #:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; AC_FUNC_MALLOC and AC_FUNC_REALLOC usually unneeded
|
||||
;; see https://lists.gnu.org/archive/html/autoconf/2003-02/msg00017.html
|
||||
(add-after 'unpack 'fix-rpl_malloc
|
||||
(lambda _
|
||||
(substitute* "configure.ac"
|
||||
(("AC_FUNC_MALLOC") ""))
|
||||
;; let bootstrap phase run.
|
||||
(delete-file "./configure")))))
|
||||
'()))
|
||||
(home-page "https://libndp.org/")
|
||||
(synopsis "Library for Neighbor Discovery Protocol")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue