LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 920|回复: 2

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

[复制链接]
发表于 2009-9-19 21:07:09 | 显示全部楼层 |阅读模式
我的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.

然后编译通过.
发表于 2009-9-20 13:31:21 | 显示全部楼层
谢谢分享,未知此补丁适用於哪版的 mplayer?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-20 19:57:43 | 显示全部楼层
我用ebuild编译的, 版本是20090731-r1.
ebuild unpack
ebuild prepare
手工加入打加号的哪一行
USE="xxxxx" ebuild configure
USE="xxxxx" ebuild compile
USE="xxxxx" ebuild install
USE="xxxxx" ebuild qmerge
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表