| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/profiles/default/linux/make.defaults,v 1.6 2010/07/12 08:53:08 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/profiles/default/linux/make.defaults,v 1.7 2010/07/26 19:15:05 ssuominen Exp $ |
| 4 | # |
4 | # |
| 5 | # System-wide defaults for the Portage system |
5 | # System-wide defaults for the Portage system |
| 6 | # See portage(5) manpage |
6 | # See portage(5) manpage |
| 7 | # |
7 | # |
| 8 | # Please avoid enabling things by default in here if possible. Understand any |
8 | # Please avoid enabling things by default in here if possible. Understand any |
| … | |
… | |
| 51 | # direction with how LDFLAGS will be set by default, this entry |
51 | # direction with how LDFLAGS will be set by default, this entry |
| 52 | # may move. |
52 | # may move. |
| 53 | # 2010/07/12 - Samuli Suominen <ssuominen@gentoo.org> |
53 | # 2010/07/12 - Samuli Suominen <ssuominen@gentoo.org> |
| 54 | # Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build |
54 | # Note that adding LDFLAGS="-Wl,-O1 ${LDFLAGS}" breaks dev-util/boost-build |
| 55 | # because of whitespace. |
55 | # because of whitespace. |
| 56 | LDFLAGS="-Wl,-O1" |
56 | LDFLAGS="-Wl,-O1 -Wl,--as-needed" |
| 57 | |
57 | |
| 58 | # 2009/09/21 Robin H. Johnson <robbat2@gentoo.org> |
58 | # 2009/09/21 Robin H. Johnson <robbat2@gentoo.org> |
| 59 | # http://archives.gentoo.org/gentoo-dev/msg_dc705dc2c1a45e18a85aa62e8fb17009.xml |
59 | # http://archives.gentoo.org/gentoo-dev/msg_dc705dc2c1a45e18a85aa62e8fb17009.xml |
| 60 | # Build kernel modules from linux-mod by default: |
60 | # Build kernel modules from linux-mod by default: |
| 61 | USE="${USE} modules" |
61 | USE="${USE} modules" |