Use check_cflags for -mdynamic-no-pic so third-party compilers will work on Darwin.

Originally committed as revision 13007 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alexander Strange 2008-04-27 16:12:24 +00:00
parent 1f9449234e
commit f946a9a431

2
configure vendored
View File

@ -1358,7 +1358,7 @@ if test $target_os = darwin; then
add_cflags "-pipe"
check_cflags "-force_cpusubtype_ALL"
check_cflags "-Wno-sign-compare"
enabled shared || add_cflags -mdynamic-no-pic
enabled shared || check_cflags -mdynamic-no-pic
fi
fi