diff --git a/x264-gpac.patch b/x264-gpac.patch index 3979342..af7c8bd 100644 --- a/x264-gpac.patch +++ b/x264-gpac.patch @@ -1,13 +1,11 @@ --- ./configure.orig 2019-03-12 00:41:42.000000000 +0000 -+++ ./configure 2019-03-12 01:10:12.603640526 +0000 -@@ -1207,7 +1207,9 @@ fi ++++ ./configure 2019-04-29 03:48:04.806285957 +0100 +@@ -1206,7 +1206,7 @@ fi + if [ "$gpac" = "auto" -a "$lsmash" != "yes" ] ; then gpac="no" - GPAC_LIBS="-lgpac_static" -- cc_check "" -lz && GPAC_LIBS="$GPAC_LIBS -lz" -+ for lib in -lz -lssl -lcrypto -lpng -ljpeg; do -+ cc_check "" $lib && GPAC_LIBS="$GPAC_LIBS $lib" -+ done +- GPAC_LIBS="-lgpac_static" ++ GPAC_LIBS="-lgpac" + cc_check "" -lz && GPAC_LIBS="$GPAC_LIBS -lz" if [ "$SYS" = "WINDOWS" ] ; then cc_check "" -lws2_32 && GPAC_LIBS="$GPAC_LIBS -lws2_32" - cc_check "" -lwinmm && GPAC_LIBS="$GPAC_LIBS -lwinmm" diff --git a/x264.spec b/x264.spec index 3e16faf..b56c858 100644 --- a/x264.spec +++ b/x264.spec @@ -210,6 +210,7 @@ install -pm644 generic/{AUTHORS,COPYING} %{buildroot}%{_pkgdocdir}/ * Mon Apr 29 2019 Sérgio Basto - 0.157-5.20190303git72db437 - Enable opencl (which is default) only exist --disable-opencl option - Disable opencl on 10bit seems that is just prepared for 8bit. +- Build /usr/bin/x264 with gpac shared lib instead static lib. * Sun Apr 28 2019 Leigh Scott - 0.157-4.20190303git72db437 - Fix opencl dlopen (rfbz#5185)