Commit dd5be57f authored by astrange's avatar astrange

configure: restore -mdynamic-no-pic on darwin (missing since r20497)

Darwin compilers default to PIC on, so -mdynamic-no-pic (which disables it 
again) needs to be added to cflags before enable pic is checked.

Fixes compilation without --enable-shared at least the 10.6 system compiler
for x86-32.
Fixes speed regression on all darwin arches except x86-64.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22730 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 79b19c91
...@@ -2121,7 +2121,6 @@ esac ...@@ -2121,7 +2121,6 @@ esac
enable $subarch enable $subarch
enabled spic && enable pic enabled spic && enable pic
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
# OS specific # OS specific
case $target_os in case $target_os in
...@@ -2292,6 +2291,8 @@ case $target_os in ...@@ -2292,6 +2291,8 @@ case $target_os in
;; ;;
esac esac
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
set_default $PATHS_LIST set_default $PATHS_LIST
add_extralibs $osextralibs add_extralibs $osextralibs
......
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