Gentoo Archives: gentoo-dev

From: Alexander Holler <holler@××××××××××.de>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] USE flags and static libs
Date: Sat, 08 Jun 2002 08:45:55
Message-Id: 214270000.1023544148@krabat.ahsoftware
In Reply to: [gentoo-dev] USE flags and static libs by Alexander Holler
1 Just as a hint for developers:
2
3 --On Samstag, Juni 08, 2002 15:16:40 +0200 Alexander Holler
4 <holler@××××××××××.de> wrote:
5
6 > 1. Building all static libs without march flags.
7 >
8 > 2. Introduce a USE flag i386static
9 > This could be used to build additional static libs with a postfix i386.
10 > E.g. libncurses.a and libncurses_i386.a.
11
12 This could be easily done replacing -march with -mcpu:
13
14 CFLAGS=`echo $CFLAGS | sed -e 's/-march/-mcpu/'`
15
16 The same applies to the CXXFLAGS.
17 According to the gcc docs, this leads to binaries which are something
18 optimized for the specific cpu but are running on all cpus.
19
20 Alexander