rbouqueau / gpac

GPAC mirror from the SourceForge Subversion
GNU Lesser General Public License v2.1
0 stars 1 forks source link

[Bug] wrong order in donfigure openhevc detection script [sf#306] #306

Open rbouqueau opened 10 years ago

rbouqueau commented 10 years ago

Reported by sl1pkn07 on 2014-03-16 17:34 UTC 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

rbouqueau commented 10 years ago

Commented by sl1pkn07 on 2014-03-16 17:35 UTC ag, typo in topic, shi*