[Mplayer-cvslog] CVS: main Makefile, 1.304, 1.305 configure, 1.917, 1.918
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Oct 12 17:50:51 CEST 2004
Hi,
>>>>> +echocheck "compiler support for -fno-PIC"
>>>>> +cat > $TMPC <<EOF
>>>>> +int main(void) { return 0; }
>>>>> +EOF
>>>>> +if cc_check -fno-PIC ; then
>>>>> + CFLAGS="-fno-PIC $CFLAGS"
>>>>> + echores "yes"
>>>>> +else
>>>>> + echores "no"
>>>>> +fi
>>>>> +
>>>>>
>>>> This patch broke osx build, please fix it. Looks like osx dont like
>>>> -fno-pic flag.
>>>
>>> Can someone tell me the exact reason? How should this be fixed? Or
>>> should I just remove that check?
>>
>> I don't see what could be wrong with this check (but I don't have access
>> to an OSX box). I mean, it simply checks if the compiler accepts the
>> -fno-PIC flag, right? So does OSX's gcc accept it and doesn't work later
>> or what?
>
> Yes osx gcc accept it but condec-cfg and other lib fail to link if its on.
> Dont know why.
Just to be sure: did you do make distclean?
Otherwise try the attached patch. -fno-PIC should be only neccessary for
x86 anyway, as they have so very few registers...
Greetings,
Reimar Döffinger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: no_pic_fix.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20041012/a964ddc1/attachment.asc>
More information about the MPlayer-cvslog
mailing list