gnu: x265: Fix build on aarch64.

* gnu/packages/video.scm (x265)[arguments]: On aarch64 add a
configure-flag to enable PIC.
This commit is contained in:
Efraim Flashner 2017-03-21 18:01:05 +02:00
parent f826c8c7ee
commit a160778cba
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -283,6 +283,10 @@ (define-public x265
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; tests are skipped if cpu-optimized code isn't built
;; Currently the source code doesn't check for aarch64
,@(if (string-prefix? "aarch64" (or (%current-target-system) (%current-system)))
'(#:configure-flags '("-DENABLE_PIC=TRUE"))
'())
#:phases
(modify-phases %standard-phases
(add-before 'configure 'prepare-build