mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: isc-dhcp: Fix cross-compilation to powerpc-linux.
* gnu/packages/admin.scm (isc-dhcp)[arguments]: Adjust the custom 'fix-bind-cross-compilation phase to force linking with '-latomic' when building for powerpc-linux.
This commit is contained in:
parent
202c97c4ce
commit
1076f32111
1 changed files with 6 additions and 2 deletions
|
@ -1479,14 +1479,18 @@ (define-public isc-dhcp
|
|||
(("^RELEASEVER=.*")
|
||||
(format #f "RELEASEVER=~a\n" ,bind-release-version)))))
|
||||
,@(if (%current-target-system)
|
||||
'((add-before 'configure 'fix-bind-cross-compilation
|
||||
`((add-before 'configure 'fix-bind-cross-compilation
|
||||
(lambda _
|
||||
(substitute* "configure"
|
||||
(("--host=\\$host")
|
||||
"--host=$host_alias"))
|
||||
;; BIND needs a native compiler because the DHCP
|
||||
;; build system uses the built 'gen' executable.
|
||||
(setenv "BUILD_CC" "gcc"))))
|
||||
(setenv "BUILD_CC" "gcc")
|
||||
;; powerpc-linux needs to be told to use -latomic.
|
||||
,@(if (target-ppc32?)
|
||||
`((setenv "LIBS" "-latomic"))
|
||||
'()))))
|
||||
'())
|
||||
(add-before 'configure 'update-config-scripts
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue