[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: ffmpeg: Build with -fPIC for riscv64-linux.
From: |
guix-commits |
Subject: |
03/04: gnu: ffmpeg: Build with -fPIC for riscv64-linux. |
Date: |
Sun, 4 Sep 2022 03:29:03 -0400 (EDT) |
efraim pushed a commit to branch staging
in repository guix.
commit 37e6965e8954d810738e0b0a86e434ae4e64672b
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Sep 4 09:18:50 2022 +0300
gnu: ffmpeg: Build with -fPIC for riscv64-linux.
* gnu/packages/video.scm (ffmpeg)[arguments]: Adjust configure-flags to
add '-fPIC' to CFLAGS when building for riscv64-linux.
---
gnu/packages/video.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 214aba26aa..3393a9db65 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1713,6 +1713,10 @@ operate properly.")
;; The static libraries are 23 MiB
"--disable-static"
+ #$@(if (target-riscv64?)
+ '("--extra-cflags=-fPIC")
+ '())
+
;; Runtime cpu detection is not implemented on
;; MIPS, so we disable some features.
"--disable-mips32r2"