[SCM] libav/experimental: configure: restore -mdynamic-no-pic on darwin (missing since r20497)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:05:27 UTC 2013


The following commit has been merged in the experimental branch:
commit 13cb218724f6f0e8ffc080b38e07c7d989aad6bb
Author: Alexander Strange <astrange at ithinksw.com>
Date:   Tue Mar 30 16:28:00 2010 +0000

    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.
    
    Originally committed as revision 22730 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index 5604181..25e8cef 100755
--- a/configure
+++ b/configure
@@ -2121,7 +2121,6 @@ esac
 
 enable $subarch
 enabled spic && enable pic
-check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
 
 # OS specific
 case $target_os in
@@ -2292,6 +2291,8 @@ case $target_os in
         ;;
 esac
 
+check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
+
 set_default $PATHS_LIST
 
 add_extralibs $osextralibs

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list