configure: set -mdynamic-no-pic flag in main darwin section

Originally committed as revision 19489 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2009-07-22 20:41:39 +00:00
parent d90330dc20
commit a036c1b537

6
configure vendored
View File

@ -1824,6 +1824,7 @@ case $target_os in
FFSERVERLDFLAGS=-Wl,-bind_at_load
objformat="macho"
enabled x86_64 && objformat="macho64"
enabled shared || check_cflags -mdynamic-no-pic
;;
mingw32*)
target_os=mingw32
@ -1972,11 +1973,6 @@ enabled version3 && { enabled gpl && enable gplv3 || enable lgplv3; }
check_deps $ARCH_EXT_LIST
#Darwin CC versions
if test $target_os = darwin; then
enabled shared || check_cflags -mdynamic-no-pic
fi
disabled optimizations || check_cflags -fomit-frame-pointer
check_cc <<EOF || die "Symbol mangling check failed."