gnu: heimdal: Fix linking error when cross-compiling.
* gnu/packages/kerberos.scm (heimdal)[arguments]<#:configure-flags>: Set ac_cv_func_getpwnam_r_posix=yes when cross-compiling.
This commit is contained in:
parent
de8ea8e827
commit
f706689a8d
1 changed files with 7 additions and 2 deletions
|
@ -207,7 +207,7 @@ After installation, the system administrator should generate keys using
|
||||||
#t))))
|
#t))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags (list
|
`(#:configure-flags (list
|
||||||
;; Avoid 7 MiB of .a files.
|
;; Avoid 7 MiB of .a files.
|
||||||
"--disable-static"
|
"--disable-static"
|
||||||
|
|
||||||
|
@ -222,8 +222,13 @@ After installation, the system administrator should generate keys using
|
||||||
;; Do not build sqlite.
|
;; Do not build sqlite.
|
||||||
(string-append
|
(string-append
|
||||||
"--with-sqlite3="
|
"--with-sqlite3="
|
||||||
(assoc-ref %build-inputs "sqlite")))
|
(assoc-ref %build-inputs "sqlite"))
|
||||||
|
|
||||||
|
;; The configure script is too pessimistic.
|
||||||
|
;; Setting this also resolves a linking error.
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'("ac_cv_func_getpwnam_r_posix=yes")
|
||||||
|
'()))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-before 'configure 'pre-configure
|
(add-before 'configure 'pre-configure
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Reference in a new issue