Changeset 824

Show
Ignore:
Timestamp:
03/11/08 16:03:40 (6 months ago)
Author:
astrange
Message:

Make it build with proper PIC flags on xcode 3.0/3.1, actually fixes last two commits. (patch by maru)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/createStaticLibs.sh

    r823 r824  
    1414fi 
    1515 
    16 what /usr/bin/ld | grep ld64-77 
    17 no_pic=$? 
     16if what /usr/bin/ld | grep -q ld64-77; then 
     17  no_pic=0 
     18else 
     19  no_pic=1 
     20fi 
    1821 
    19 if [ $no_pic ]; then 
     22if [ $no_pic -gt 0 ]; then 
    2023    sdkflags="$sdkflags -mdynamic-no-pic" # ld can't handle -fno-pic on ppc 
    2124else 
     
    6568fi 
    6669 
    67 if [ ! $no_pic ]; then 
     70if [ $no_pic -eq 0 ] ; then 
    6871 (cd ffmpeg; patch -p1 < ../Patches/ffmpeg-pic.diff) 
    6972fi