mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: ffmpeg and vlc: Rely on runtime cpu detection.
* gnu/packages/video.scm (ffmpeg): Pass "--enable-runtime-cpudetect" to configure. Do not disable use of processor features that can be detected at runtime. (vlc): Rely on runtime cpu detection. Do not disable use of processor features that can be detected at runtime.
This commit is contained in:
parent
fe138965af
commit
82fce926f4
1 changed files with 5 additions and 29 deletions
|
@ -170,31 +170,11 @@ (define-public ffmpeg
|
||||||
"--enable-libtheora"
|
"--enable-libtheora"
|
||||||
"--enable-libvorbis"
|
"--enable-libvorbis"
|
||||||
"--enable-libvpx"
|
"--enable-libvpx"
|
||||||
;; drop special machine instructions not supported
|
|
||||||
;; on all instances of the target
|
"--enable-runtime-cpudetect"
|
||||||
,@(if (string-prefix? "x86_64"
|
|
||||||
(or (%current-target-system)
|
;; Runtime cpu detection is not implemented on
|
||||||
(%current-system)))
|
;; MIPS, so we disable some features.
|
||||||
'()
|
|
||||||
'("--disable-amd3dnow"
|
|
||||||
"--disable-amd3dnowext"
|
|
||||||
"--disable-mmx"
|
|
||||||
"--disable-mmxext"
|
|
||||||
"--disable-sse"
|
|
||||||
"--disable-sse2"))
|
|
||||||
"--disable-altivec"
|
|
||||||
"--disable-sse3"
|
|
||||||
"--disable-ssse3"
|
|
||||||
"--disable-sse4"
|
|
||||||
"--disable-sse42"
|
|
||||||
"--disable-avx"
|
|
||||||
"--disable-fma4"
|
|
||||||
"--disable-avx2"
|
|
||||||
"--disable-armv5te"
|
|
||||||
"--disable-armv6"
|
|
||||||
"--disable-armv6t2"
|
|
||||||
"--disable-vfp"
|
|
||||||
"--disable-neon"
|
|
||||||
"--disable-mips32r2"
|
"--disable-mips32r2"
|
||||||
"--disable-mipsdspr1"
|
"--disable-mipsdspr1"
|
||||||
"--disable-mipsdspr2"
|
"--disable-mipsdspr2"
|
||||||
|
@ -270,10 +250,6 @@ (define-public vlc
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
`("--disable-a52" ; FIXME: reenable once available
|
`("--disable-a52" ; FIXME: reenable once available
|
||||||
"--disable-mmx" ; FIXME: may be enabled on x86_64
|
|
||||||
"--disable-sse" ; 1-4, no separate options available
|
|
||||||
"--disable-neon"
|
|
||||||
"--disable-altivec"
|
|
||||||
,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
|
,(string-append "LDFLAGS=-Wl,-rpath -Wl,"
|
||||||
(assoc-ref %build-inputs "ffmpeg")
|
(assoc-ref %build-inputs "ffmpeg")
|
||||||
"/lib")))) ; needed for the tests
|
"/lib")))) ; needed for the tests
|
||||||
|
|
Loading…
Reference in a new issue