Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Suggested default LDFLAGS+="-Wl,-O1,--hash-style=gnu,--sort-common"
Date: Tue, 24 Jun 2008 12:15:12
1 I would like to suggest that default LDFLAGS in Gentoo contain the following
2 flags: "-Wl,-O1,--hash-style=gnu,--sort-common".
4 -O1 enables some basic optimizations.
5 --hash-style=gnu causes that ld creates only new GNU-style hash tables.
6 --sort-common causes that ld sorts the common symbols by size when it places
7 them in the appropriate output sections.
9 These options don't cause any problems, so they should be less controversial
10 than --as-needed.
11 (These options don't conflict with --as-needed, so --as-needed can be still
12 added to default LDFLAGS, but this thread isn't about --as-needed.)
14 --
15 Arfrever Frehtes Taifersar Arahesis
16 --
17 gentoo-dev@l.g.o mailing list