Commit 997ef1d3 authored by Sérgio Basto's avatar Sérgio Basto

Use pkg-config to add libraries needed by gpac_static

Patch provide on the same License of x264, on purpose to avoid creating problems
and the x264 authors can modify it as they wish
parent fa264466
Pipeline #66709 passed with stages
in 3 minutes and 17 seconds
......@@ -1244,9 +1244,7 @@ fi
if [ "$gpac" = "auto" -a "$lsmash" != "yes" ] ; then
gpac="no"
GPAC_LIBS="-lgpac_static"
cc_check "" -lz && GPAC_LIBS="$GPAC_LIBS -lz"
cc_check "" -ldl && GPAC_LIBS="$GPAC_LIBS -ldl"
GPAC_LIBS="$($PKGCONFIG --static --libs gpac)"
if [ "$SYS" = "WINDOWS" ] ; then
cc_check "" -lws2_32 && GPAC_LIBS="$GPAC_LIBS -lws2_32"
cc_check "" -lwinmm && GPAC_LIBS="$GPAC_LIBS -lwinmm"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment