Skip to content

Commit 28d8a37

Browse files
authored
updpatch: openh264, ver=2.6.0-1.1 (#489)
* Re-enable LTO * Switch to clang to workaround the bug of gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119084 * Apply cisco/openh264#3864 to remove redundant parameters which are incompatible with `VAACalcSad` in `VAACalcSad_lsx` Signed-off-by: Zhou Qiankang <[email protected]>
1 parent 54172ed commit 28d8a37

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

openh264/loong.patch

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
diff --git a/PKGBUILD b/PKGBUILD
2-
index 3aa50f1..c4d9139 100644
2+
index 3aa50f1..721ce97 100644
33
--- a/PKGBUILD
44
+++ b/PKGBUILD
5-
@@ -37,3 +37,5 @@ package() {
5+
@@ -19,6 +19,8 @@ sha256sums=('558544ad358283a7ab2930d69a9ceddf913f4a51ee9bf1bfb9e377322af81a69'
6+
'9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c')
7+
8+
prepare() {
9+
+ export CC=clang CXX=clang++
10+
+ patch -Np1 -i "${srcdir}/fix-loong64-lto-SVC_ME_FunTest.patch" -d "${pkgname}-${pkgver}"
11+
ln -sf "../googletest-release-${_gtestver}" "${pkgname}-${pkgver}/gtest"
12+
}
13+
14+
@@ -37,3 +39,7 @@ package() {
615
install -D -m755 "${pkgname}-${pkgver}"/h264{dec,enc} -t "${pkgdir}/usr/bin"
716
install -D -m644 "${pkgname}-${pkgver}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
817
}
918
+
10-
+options+=(!lto)
19+
+makedepends+=(clang)
20+
+source+=("fix-loong64-lto-SVC_ME_FunTest.patch::https://github.com/cisco/openh264/commit/f285349933e434b69d5acdda0712762b75ac4a06.patch")
21+
+sha256sums+=('ceba02a23faee81dc929e870f6a674d3b36a58d69089cd481da680bbba6e0291')

0 commit comments

Comments
 (0)