Gentoo Archives: gentoo-user

From: Ralf <ralf+gentoo@×××××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] CFLAGs for kernel compilation
Date: Wed, 29 Apr 2015 11:31:09
Message-Id: 5540C101.70906@ramses-pyramidenbau.de
1 Hi,
2
3 just a short question: I don't like genkernel, I always compile my
4 kernel manually using menuconfig.
5 So the CFLAGs of my make.conf won't get applied.
6
7 What is the best way to (persistently) set the CFLAGs for the kernel
8 compilation?
9
10 - I don't like invoking 'CFLAGS="-O2 -march=foo"make'
11 - I don't want to set CFLAGS as a persistent environment variable.
12 - I don't want to modify the kernel Makefile
13
14 Does it actually make sense to set an optimization level and -march?
15
16 Cheers
17 Ralf

Replies

Subject Author
Re: [gentoo-user] CFLAGs for kernel compilation Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] CFLAGs for kernel compilation Andrew Savchenko <bircoph@g.o>
Re: [gentoo-user] CFLAGs for kernel compilation Volker Armin Hemmann <volkerarmin@××××××××××.com>