[FFmpeg-cvslog] r20497 - trunk/configure

Alexander Strange astrange
Sun Feb 28 03:07:53 CET 2010


On Sat, Nov 14, 2009 at 5:38 PM, Alexander Strange
<astrange at ithinksw.com> wrote:
>
> On Nov 10, 2009, at 7:57 AM, reimar wrote:
>
>> Author: reimar
>> Date: Tue Nov 10 13:57:28 2009
>> New Revision: 20497
>>
>> Log:
>> Check if PIC is somehow already enabled (e.g. a compiler that enables it by default).
>> This in particular ensures that -DPIC is set appropriately for YASM, which avoids
>> linking failures on x86_64 for compilers that have PIE enabled by default
>> (e.g. hardened Gentoo).
>> It also makes the macho64 special-case hack adding -DPIC to YASMFLAGS obsolete.
>
> This broke adding -mdynamic-no-pic on Darwin again.
>
> Is it safe to move the check after the OS section?

I can't get 10.6+32-bit to compile now without the patch.

> gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646.1~2/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
--program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
--target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)

> ./configure --extra-ldflags=-m32 --extra-cflags=-m32 --cpu=core2
...
EBX available             no
EBP available             yes
10 operands supported     no
...
> make -j2
...
gcc -DHAVE_AV_CONFIG_H -I. -I"/Users/astrange/Projects/video/ffmpeg"
-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DPIC -m32 -march=core2 -std=c99
-fomit-frame-pointer -fPIC -g -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef
-Wmissing-prototypes -O3 -fno-math-errno -fno-tree-vectorize
-MMD -MF libavcodec/x86/mpegvideo_mmx.d -MT
libavcodec/x86/mpegvideo_mmx.o -c -o libavcodec/x86/mpegvideo_mmx.o
libavcodec/x86/mpegvideo_mmx.c
libavcodec/x86/h264dsp_mmx.c: In function ?put_h264_qpel4_h_lowpass_3dnow?:
libavcodec/x86/h264dsp_mmx.c:2079: error: can't find a register in
class ?GENERAL_REGS? while reloading ?asm?
libavcodec/x86/h264dsp_mmx.c:2079: error: ?asm? operand has impossible
constraints


>> Modified:
>> ? trunk/configure
>>
>> Modified: trunk/configure
>> ==============================================================================
>> --- trunk/configure ? Tue Nov 10 05:17:18 2009 ? ? ? ?(r20496)
>> +++ trunk/configure ? Tue Nov 10 13:57:28 2009 ? ? ? ?(r20497)
>> @@ -1876,6 +1876,9 @@ esac
>>
>> enable $arch $subarch
>> enabled spic && enable pic
>> +# This is the same check as used in libavutil/internal.h
>> +# to enable RIP-relative addressing for x86_64 inline asm.
>> +check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic



More information about the ffmpeg-cvslog mailing list