Ticket #2134: mplayer-clang-fix.2.diff

File mplayer-clang-fix.2.diff, 740 bytes (added by git@…, 13 years ago)

Darwin-specific changes to fix compilation on current Mac OS X/Xcode/clang

  • mplayer--svn-HEAD/configure

     
    17291729_getch=getch2.c
    17301730
    17311731if darwin; then
    1732   extra_cflags="-mdynamic-no-pic $extra_cflags"
    17331732  _timer=timer-darwin.c
    17341733fi
    17351734
     
    27712770    extra_ldflags="$extra_ldflags -pie"
    27722771    relocatable=yes
    27732772    res_comment="non-PIC"
     2773  elif x86_64 && test "$cc_vendor" = "clang" && darwin; then
     2774    extra_ldflags="$extra_ldflags -Wl,-pie"
     2775    relocatable=yes
     2776    res_comment="fast PIC"
    27742777  elif x86_64 && cflag_check -fpie -pie ; then
    27752778    extra_ldflags="$extra_ldflags -fpie -pie"
    27762779    extra_cflags="$extra_cflags -fpie"