[MPlayer-cvslog] r36135 - trunk/configure

reimar subversion at mplayerhq.hu
Wed Apr 3 11:40:30 CEST 2013


Author: reimar
Date: Wed Apr  3 11:40:30 2013
New Revision: 36135

Log:
Add workaround to allow compiling 64 bit MPlayer with clang on OSX.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Mon Apr  1 20:16:20 2013	(r36134)
+++ trunk/configure	Wed Apr  3 11:40:30 2013	(r36135)
@@ -2851,9 +2851,16 @@ fi #if x86_32
 echocheck "PIC"
 def_pic='#define CONFIG_PIC 0'
 pic=no
-cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' &&
-  pic=yes && extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1'
+cpp_condition_check '' 'defined(__PIC__) || defined(__pic__) || defined(PIC)' && pic=yes
+# This check is needed to work around issues with clang on OSX when compiling 64 bit relocatable binaries.
+if x86_64 && test "$relocatable" = "yes" && test "$pic" = "no"; then
+  res_comment="Broken compiler incorrectly claims PIC not necessary for PIE"
+  pic=yes
+fi
 echores $pic
+if test "$pic" = "yes" ; then
+  extra_cflags="$extra_cflags -DPIC" && def_pic='#define CONFIG_PIC 1'
+fi
 
 
 def_bswap='#define HAVE_BSWAP 0'


More information about the MPlayer-cvslog mailing list