+ -
当前位置:首页 → 问答吧 → mplayer在gcc4.4.0下无法编译的补丁.

mplayer在gcc4.4.0下无法编译的补丁.

时间:2009-09-20

来源:互联网

我的LFS使用了gcc-4.4.0, 好多软件编译有问题, 包括celestia, stardict, 今天又卡在mplayer上. Gentoo的ebuild比较保守, 仍采用gcc-4.3.3, 看来有一定道理.

网上看了看, 补丁也很简单:

--- configure (revision 29245)
+++ configure (working copy)

def_liba52='#undef CONFIG_LIBA52'
def_liba52_internal="#undef CONFIG_LIBA52_INTERNAL"
if test "$_liba52_internal" = yes ; then
+ test "$cc_vendor" = gnu && test "$cc_version" = 4.4.0 && CFLAGS=$(echo $CFLAGS|sed "s/ *-O4 */ -O2 /")
_liba52=yes
def_liba52_internal="#define CONFIG_LIBA52_INTERNAL 1"
_res_comment="internal"

手工加一句话就OK.

然后编译通过.

作者: swordhui   发布时间: 2009-09-20

谢谢分享,未知此补丁适用於哪版的 mplayer?

作者: d00m3d   发布时间: 2009-09-20

我用ebuild编译的, 版本是20090731-r1.
ebuild unpack
ebuild prepare
手工加入打加号的哪一行
USE="xxxxx" ebuild configure
USE="xxxxx" ebuild compile
USE="xxxxx" ebuild install
USE="xxxxx" ebuild qmerge

作者: swordhui   发布时间: 2009-09-20