comparison configure @ 36041:5f730ed5b3d2

Add workaround to allow compiling 64 bit MPlayer with clang on OSX.
author reimar
date Wed, 03 Apr 2013 09:40:30 +0000
parents 826e7d2dcd7e
children df9dead0e2ad
comparison
equal deleted inserted replaced
36040:5ecbf382ff26 36041:5f730ed5b3d2
2849 # gcc configuration (e.g. hardened or not) and compiler options. 2849 # gcc configuration (e.g. hardened or not) and compiler options.
2850 # Needs to be after the relocatable handling, since PIE changes whether we need PIC or not. 2850 # Needs to be after the relocatable handling, since PIE changes whether we need PIC or not.
2851 echocheck "PIC" 2851 echocheck "PIC"
2852 def_pic='#define CONFIG_PIC 0' 2852 def_pic='#define CONFIG_PIC 0'
2853 pic=no 2853 pic=no
2854 cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' && 2854 cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' && pic=yes
2855 pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1' 2855 # This check is needed to work around issues with clang on OSX when compiling 64 bit relocatable binaries.
2856 if x86_64 && test "$relocatable" = "yes" && test "$pic" = "no"; then
2857 res_comment="Broken compiler incorrectly claims PIC not necessary for PIE"
2858 pic=yes
2859 fi
2856 echores $pic 2860 echores $pic
2861 if test "$pic" = "yes" ; then
2862 extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1'
2863 fi
2857 2864
2858 2865
2859 def_bswap='#define HAVE_BSWAP 0' 2866 def_bswap='#define HAVE_BSWAP 0'
2860 def_ebx_available='#define HAVE_EBX_AVAILABLE 0' 2867 def_ebx_available='#define HAVE_EBX_AVAILABLE 0'
2861 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 0' 2868 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 0'