Browse Source

use $CFLAGS and $LDFLAGS in dlopen() check

Originally committed as revision 4710 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 20 years ago
parent
commit
fd2ab74aae
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      configure

+ 4
- 4
configure View File

@@ -1030,12 +1030,12 @@ EOF


ldl=-ldl ldl=-ldl


if $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
dlfcn=yes dlfcn=yes
dlopen=yes dlopen=yes
fi fi


if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC > /dev/null 2>&1 ; then
dlfcn=yes dlfcn=yes
dlopen=yes dlopen=yes
ldl="" ldl=""
@@ -1045,11 +1045,11 @@ cat > $TMPC << EOF
int main( void ) { return (int) dlopen("foo", 0); } int main( void ) { return (int) dlopen("foo", 0); }
EOF EOF


if $cc -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -ldl > /dev/null 2>&1 ; then
dlopen=yes dlopen=yes
fi fi


if $cc -o $TMPE $TMPC > /dev/null 2>&1 ; then
if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC > /dev/null 2>&1 ; then
dlopen=yes dlopen=yes
ldl="" ldl=""
fi fi


Loading…
Cancel
Save