Commit 2cd83302 authored by mru's avatar mru

use $CFLAGS and $LDFLAGS in dlopen() check


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4710 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3cf9608a
...@@ -1030,12 +1030,12 @@ EOF ...@@ -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 ...@@ -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
......
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