From 2c10c2435b7a56dee5fe6e62daf01e9a62503441 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 2 Dec 2005 21:59:46 +0000 Subject: [PATCH] Added chost/cflags/cxxflags/ldflags to example spec template. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@934 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 6 +++++- examples/generic_stage_template.spec | 29 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 73ef6610..52a4f48c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.421 2005/12/02 21:39:37 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.422 2005/12/02 21:59:46 wolf31o2 Exp $ + + 02 Dec 2005; Chris Gianelloni + examples/generic_stage_template.spec: + Added chost/cflags/cxxflags/ldflags to example spec template. 02 Dec 2005; Chris Gianelloni targets/support/rc-update.sh: diff --git a/examples/generic_stage_template.spec b/examples/generic_stage_template.spec index 4a15ddcc..10b7851d 100644 --- a/examples/generic_stage_template.spec +++ b/examples/generic_stage_template.spec @@ -58,3 +58,32 @@ distcc_hosts: # example: # portage_confdir: /etc/portage portage_confdir: + +# These options are only available when building a stage1 target and are all +# optional. + +# This option is used to change the CHOST from what is default in the profile +# to whatever you specify. This is useful for building NPTL, for example. +# example: +# chost: i686-pc-linux-gnu +chost: + +# This option allows you to change the default CFLAGS that will be used in +# building this stage. This really should remain generic, as putting +# optimizations flags here will build a stage1 tarball that is no longer +# generic. +# example: +# cflags: -Os -pipe -fomit-frame-pointer -mcpu=i686 +cflags: + +# This is for setting the CXXFLAGS. Generally, this would be set to the same +# as CFLAGS. In fact, it will mirror CFLAGS by default. +# example: +# cxxflags: -Os -pipe -fomit-frame-pointer -mcpu=i686 +cxxflags: + +# Setting this option sets LDFLAGS in make.conf in your stage. This would be +# useful for setting up an embedded or hardened system. +# example: +# ldflags: -Wl,-O1 -Wl,-z,now +ldflags: -- 2.26.2