public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Proposal for flag-o-matic.eclass (append-ldflags)
Date: Tue, 9 Dec 2008 11:14:05 -0800	[thread overview]
Message-ID: <20081209191405.GC2455@comet> (raw)
In-Reply-To: <90b936c0812080833q1079ea5bsaf48a8b7b703ad64@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1628 bytes --]

On 10:33 Mon 08 Dec     , Jeremy Olexa wrote:
> Hello,
> I am seeking a positive code review on the following change to
> flag-o-matic.eclass, diff is below (reasons are below that):
> 
> %% cvs diff
> Index: flag-o-matic.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v
> retrieving revision 1.126
> diff -u -r1.126 flag-o-matic.eclass
> --- flag-o-matic.eclass 3 Nov 2008 05:52:39 -0000       1.126
> +++ flag-o-matic.eclass 25 Nov 2008 18:36:04 -0000
> @@ -417,7 +417,8 @@
> 
>        x=""
>        for x in "$@" ; do
> -               test-flag-${comp} "${x}" && flags="${flags}${flags:+ }${x}"
> +               test-flag-${comp} "${x}" && flags="${flags}${flags:+ }${x}" || \
> +                       ewarn "removing ${x} because ${comp} rejected it"
>        done
> 
>        echo "${flags}"
> @@ -656,7 +657,7 @@
>                        ewarn "Appending a library link instruction
> (${flag}); libraries to link to should not be passed through LDFLAGS"
>        done
> 
> -       export LDFLAGS="${LDFLAGS} $*"
> +       export LDFLAGS="${LDFLAGS} $(test-flags "$@")"
>        return 0
>  }

I like the consistency with other flags:

comet $ grep FLAGS.*test-fl /usr/portage/eclass/flag-o-matic.eclass 
	export CFLAGS=$(test-flags-CC ${CFLAGS})
	export CXXFLAGS=$(test-flags-CXX ${CXXFLAGS})
	export FFLAGS=$(test-flags-F77 ${FFLAGS})
	export FCFLAGS=$(test-flags-FC ${FCFLAGS})

-- 
Thanks,
Donnie

Donnie Berkholz
Developer, Gentoo Linux
Blog: http://dberkholz.wordpress.com

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-12-09 19:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 16:33 [gentoo-dev] Proposal for flag-o-matic.eclass (append-ldflags) Jeremy Olexa
2008-12-09 19:14 ` Donnie Berkholz [this message]
2009-08-28 20:04   ` Mike Frysinger
2008-12-14 21:39 ` [gentoo-dev] " Jeremy Olexa
2009-08-28 20:08   ` Mike Frysinger
2009-08-29  7:23     ` Fabian Groffen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081209191405.GC2455@comet \
    --to=dberkholz@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox