Difference: GentooTipsAndTricks (1 vs. 2)

Revision 210 Oct 2016 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Gentoo Tips And Tricks

Line: 28 to 28
 export CFLAGS="-O2 -march=athlon64 -pipe" export CXXFLAGS="${CFLAGS}"
Deleted:
<
<
I normally use CFLAGS="-O2 -march=barcelona -pipe" in make.conf, which is not supported yet in gcc-4.2.4.
  -- IvoVanGeel - 27 Feb 2011

Revision 127 Feb 2011 - IvoVanGeel

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="WebHome"

Gentoo Tips And Tricks

Updating world

Use: emerge -a -u --deep --newuse world 2>&1 | tee emerge-world.txt

Check the messages at the end of emerge-world.txt, to see if you need to reconfigure your system after packages have been upgraded.

To make sure you did not break any library dependencies. Run revdep-rebuild after a world upgrade.

Cleaning old packages after updating world

After updating world, remove old or unneeded packages using: emerge -a --depclean. After this, you need to check the dependencies of all installed packages using: revdep-rebuild.

Overriding environment settings

For some packages, you may need to override environment settings from make.conf. Do this by creating a file called:

  • /etc/portage/env/[category]/[package] or
  • /etc/portage/env/[category]/[package]-[version]

For example:

/etc/portage/env/sys-devel/gcc-4.2.4

export CFLAGS="-O2 -march=athlon64 -pipe"
export CXXFLAGS="${CFLAGS}"

I normally use CFLAGS="-O2 -march=barcelona -pipe" in make.conf, which is not supported yet in gcc-4.2.4.

-- IvoVanGeel - 27 Feb 2011

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2010-2019 by LANIS