+ -
当前位置:首页 → 问答吧 → 关于 make.conf 文件

关于 make.conf 文件

时间:2009-02-12

来源:互联网

请高手解读下make.conf文件

介绍如何编写一个make.conf文件

作者: l_s   发布时间: 2009-02-12

如果英文可以的话,直接看man make.conf

或者看handbook的第二和第三部分,http://www.gentoo.org/doc/zh_cn/hand...ndbook-x86.xml 这是中文版

作者: cheeselee   发布时间: 2009-02-12

其实我认为关键是对与USE的选择。如果不了解,可以看手册,如果想得到一份好的make.conf则需要自己慢慢积累。

作者: aiezue   发布时间: 2009-02-12

man make.conf 和 portage 有關的文檔就可以了

作者: gogonkt   发布时间: 2009-02-12

引用:
作者: aiezue
其实我认为关键是对与USE的选择。如果不了解,可以看手册,如果想得到一份好的make.conf则需要自己慢慢积累。
举个例来说说撒

作者: l_s   发布时间: 2009-02-12

最好只设置在自己安装软件时出现的USE标志。也即是随着软件的安装,见到的USE标志也越多,在make.conf里的USE设置才也逐渐增多。
也即是不要一开始就把别人的USE设置抄过来,一开始就自己设置太多的USE可能会造成后来的安装出现循环依赖或者block

作者: cheeselee   发布时间: 2009-02-12

引用:
作者: cheeselee
最好只设置在自己安装软件时出现的USE标志。也即是随着软件的安装,见到的USE标志也越多,在make.conf里的USE设置才也逐渐增多。
也即是不要一开始就把别人的USE设置抄过来,一开始就自己设置太多的USE可能会造成后来的安装出现循环依赖或者block
我不想设置 USE, 我想设置其它的变量
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.

# <gcc-4.3
#CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"

# >=gcc-4.3
#CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"

# GCC 4.3 introduces a new -march option, -march=native, which automatically detects
# the features your CPU supports and sets the options appropriately. If you have an
# Intel or AMD CPU and are using >=sys-devel/gcc-4.2.0, using -march=native is recommended.
# Do NOT use -march=native if you use distcc on nodes with different architectures as
# this may produce unusable code.
CFLAGS="-march=native -O2 -pipe"

CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"

LDFLAGS="-Wl,-O1"

ACCEPT_KEYWORDS="~x86"

FEATURES="parallel-fetch ccache"

PORTAGE_RSYNC_INITIAL_TIMEOUT=30

CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="2G"

# 电信
SYNC="rsync://mirror.averse.net/gentoo-portage"
#SYNC="rsync://linux.ntcu.net/gentoo-portage"
# 网通
#SYNC="rsync://61.135.158.199/gentoo-portage"

# 电信
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://mirror.averse.net/pub/gentoo/"
# 网通
#GENTOO_MIRRORS="http://61.135.158.199"


#USE="X a52 aac accessibility acpi alsa branding bzip2 cairo cjk dell dbus dri dvd emacs ffmpeg flac glib gnome gnutls gtk hal java laptop logrotate mozilla mmx nautilus nls nptl nptlonly nsplugin nvidia opengl pdf perl real realmedia readline sound ssl sse sse2 ssse3 svg unicode theora truetype xulrunner zlib bash-completion gif png xml -eds -esd -ipv6 -gcj -kde -qt3 -spell"

USE="X gtk gnome glib nautilus svg jpeg dri xml tiff bzip2 zlib gnutls hal wifi nautilus xulrunner bash-completion truetype cleartype sound alsa dvd acpi ffmpeg gstreamer png pdf unicode gif cjk nvidia opengl glitz xcb dell laptop cairo dbus -kde -qt3"

LINGUAS="zh_CN zh"

VIDEO_CARDS="nv nvidia vesa" #像这些之类的

ALSA_CARDS="hda-intel" #那儿提供这些变量

INPUT_DEVICES="keyboard mouse synaptics"

MAKEOPTS="-j3"

作者: l_s   发布时间: 2009-02-12

这些,我是在网上找的,不是我自己写的,看到这个我不明白,我make.conf 里面没有这个变量
VIDEO_CARDS="nv nvidia vesa" #像这些之类的.conf文件里没有

像这些,要怎么才知道有呀

作者: l_s   发布时间: 2009-02-12

VIDEO_CARDS一般在安装xorg中用到,应该知道吧,emerge -pv xorg-server,就能看到很多VIDEO_CARDS的选项。

ALSA_CARDS还真的没设置过,已经能发声了就算了

作者: cheeselee   发布时间: 2009-02-12