Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Date: Tue, 24 Jun 2008 12:17:50
Message-Id: 20080624121748.GI4714@gentoo.org
In Reply to: [gentoo-dev] Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common" by Arfrever Frehtes Taifersar Arahesis
1 On 24-06-2008 14:15:10 +0200, Arfrever Frehtes Taifersar Arahesis wrote:
2 > I would like to suggest that default LDFLAGS in Gentoo contain the following
3 > flags: "-Wl,-O1,--hash-style=gnu,--sort-common".
4 >
5 > -O1 enables some basic optimizations.
6 > --hash-style=gnu causes that ld creates only new GNU-style hash tables.
7 > --sort-common causes that ld sorts the common symbols by size when it places
8 > them in the appropriate output sections.
9 >
10 > These options don't cause any problems, so they should be less controversial
11 > than --as-needed.
12 > (These options don't conflict with --as-needed, so --as-needed can be still
13 > added to default LDFLAGS, but this thread isn't about --as-needed.)
14
15 as long as it doesn't go in /base, but in the linux/freebsd profiles
16 instead, it's fine with me.
17
18
19 --
20 Fabian Groffen
21 Gentoo on a different level
22 --
23 gentoo-dev@l.g.o mailing list

Replies