|
|
安装mplayer时,看了USE
- lee-thinkpad / # emerge -av media-video/gnome-mplayer
- These are the packages that would be merged, in order:
- Calculating dependencies... done!
- [ebuild N ] media-libs/win32codecs-20071007-r2 USE="-real" 240 kB
- [ebuild N ] media-libs/libtheora-1.0_beta2-r1 USE="encode -doc -examples" 1,734 kB
- [ebuild N ] media-libs/giflib-4.1.6 USE="X -rle" 495 kB
- [ebuild N ] media-video/mplayer-1.0_rc2_p26753-r1 USE="X a52 alsa arts dvd encode esd gif gtk iconv ipv6 jpeg mad mmx mp3 opengl oss png pulseaudio quicktime sdl theora truetype unicode vorbis win32codecs xscreensaver xv -3dnow -3dnowext -aac -aalib (-altivec) -amrnb -amrwb -bidi -bindist -bl -cddb -cdio -cdparanoia -cpudetection -custom-cflags -debug -dga -directfb -doc -dts -dv -dvb -enca -fbcon -ftp -ggi -jack -joystick -ladspa -libcaca -lirc -live -lzo -md5sum -mmxext -mp2 -musepack -nas -nemesi -openal -pnm -radio -rar -real -rtc -samba -speex -srt -sse -sse2 -ssse3 -svga -teletext -tga -v4l -v4l2 -vidix -x264 -xanim -xinerama -xvid -xvmc -zoran" VIDEO_CARDS="mga s3virge tdfx vesa" 8,053 kB
- [ebuild N ] media-video/gnome-mplayer-0.6.0 441 kB
- Total: 5 packages (5 new), Size of downloads: 10,961 kB
- Would you like to merge these packages? [Yes/No]
复制代码
- lee-thinkpad / # cat /proc/cpuinfo
- processor : 0
- vendor_id : GenuineIntel
- cpu family : 6
- model : 22
- model name : Intel(R) Celeron(R) M CPU 520 @ 1.60GHz
- stepping : 1
- cpu MHz : 1596.050
- cache size : 1024 KB
- fdiv_bug : no
- hlt_bug : no
- f00f_bug : no
- coma_bug : no
- fpu : yes
- fpu_exception : yes
- cpuid level : 10
- wp : yes
- flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx lm constant_tsc up arch_perfmon pebs bts pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
- bogomips : 3195.89
- clflush size : 64
复制代码
奇怪了,为什么sse不会被自动激活呢?
- lee-thinkpad / # emerge --info
- Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.24-16-generic i686)
- =================================================================
- System uname: 2.6.24-16-generic i686 Intel(R) Celeron(R) M CPU 520 @ 1.60GHz
- ...
- CXXFLAGS="-march=prescott -O2 -pipe"
- ...
- USE="X acl acpi alsa arts berkdb cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd espeak evo fam festival firefox fortran gdbm gif gnome gpm gstreamer gtk gucharmap hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png portaudio pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US zh_CN zh" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
- Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
复制代码
CPU CXXFLAGS用这个prescott
- # prescott Intel Pentium4 with MMX, SSE, SSE2 and SSE3.
复制代码
用PHP写了个自己过滤脚本,把gnome-mplayer的USE存到一个数组,emerge --info显示的USE放到一个数组,然后一个个对比
- $use[20] = dts
- $use[49] = sse
- $use[50] = sse2
- $use[51] = ssse3
复制代码
最后手动把上面四个加入到/etc/make.conf
1、为什么已经设置了CPU flag但是没有自动激活相应的特性?
2、有没有更好的办法?
注:我基本没有改/etc/make.conf,因为还在文档集里自我折磨中…… |
|