Hi
the configure script, in the openhevc detection, have a wrong flags order for detect if openHEVC has installed
----------------------snip--------------------------
if $cc -o $TMPO $TMPC $ohevc_cflags $LDFLAGS $ohevc_ldflags 2> /dev/null ; then
has_openhevc="yes"
else
ohevc_cflags="-I$local_inc"
ohevc_ldflags="-lLibOpenHevcWrapper -lpthread -lm"
if $cc -o $TMPO $TMPC $ohevc_cflags $LDFLAGS -L$local_lib $ohevc_ldflags 2> /dev/null ; then
has_openhevc="yes"
ohevc_ldflags="-L../../$local_lib $ohevc_ldflags"
fi
fi
---------------------/snip--------------------------
this fail if LDFLAGS is set with "--as-needed", because $LDFLAGS is set before $ohevc_ldflags
change this order, like:
"if $cc -o $TMPO $TMPC $ohevc_cflags $ohevc_ldflags $LDFLAGS 2> /dev/null ; then"
solve the problem
steps to reproduce:
greetings
ag, typo in topic, shi*
this should have been fixed some time ago on SVN