Ticket #2134: mplayer-clang-fix.diff
| File mplayer-clang-fix.diff, 1.1 KB (added by , 13 years ago) |
|---|
-
mplayer--svn-HEAD/configure
1729 1729 _getch=getch2.c 1730 1730 1731 1731 if darwin; then 1732 extra_cflags="-mdynamic-no-pic $extra_cflags"1733 1732 _timer=timer-darwin.c 1734 1733 fi 1735 1734 … … 2771 2770 extra_ldflags="$extra_ldflags -pie" 2772 2771 relocatable=yes 2773 2772 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" 2774 2777 elif x86_64 && cflag_check -fpie -pie ; then 2775 2778 extra_ldflags="$extra_ldflags -fpie -pie" 2776 2779 extra_cflags="$extra_cflags -fpie" … … 2847 2850 echocheck "PIC" 2848 2851 def_pic='#define CONFIG_PIC 0' 2849 2852 pic=no 2850 cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' && 2851 pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1' 2853 cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' && pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1' 2852 2854 echores $pic 2853 2855 2854 2856
