public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: "Carlos O'Donell" <carlos@systemhalted.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: libc-ports@sourceware.org,
	"Carlos O'Donell" <carlos_odonell@mentor.com>,
		Andrew Haley <aph@redhat.com>,
	Roland McGrath <roland@hack.frob.com>,
	steve.mcintyre@linaro.org, 	michael.hope@linaro.org
Subject: Re: [WIP] glibc: Use /lib/ld-linux-armhf.so.3 for ARM's -mfloat-abi=hard ABI.
Date: Fri, 27 Apr 2012 12:57:00 -0000	[thread overview]
Message-ID: <CADZpyiyTg6=74O8Gk47WLgu1tASRxHb25c5zO4EuqALuhjDaYg@mail.gmail.com> (raw)
In-Reply-To: <201204262219.36774.vapier@gentoo.org>

On Thu, Apr 26, 2012 at 10:19 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Thursday 26 April 2012 17:09:36 Carlos O'Donell wrote:
>> --- sysdeps/arm/preconfigure  (revision 368507)
>> +++ sysdeps/arm/preconfigure  (working copy)
>>
>> +             armhf_dynamic_linker="ld-linux-armhf.so.3"
>> +                if `echo "$libc_cv_compiler_dynlinker_default" | grep
>> "$armhf_dynamic_linker" >& /dev/null`; then
>
> not that it matters as it sounds like this is going to be rewritten, but
> there's no need for grep here.  you can use a case statement:

I always appreciate a good review!

>        case $libc_cv_compiler_dynlinker_default in
>        *$armhf_dynamic_linker*)
>                ... hard float ...
>                ;;
>        *)
>                ... soft float ...
>                ;;
>        esac

Thank's that's a great idea, I always forget case can emulate grep.

> also, what's with the back ticks ?  i think you just wanted:
>        if echo ... | grep ... ; then
> rather than:
>        if `echo ... | grep ...` ; then

WIP, it used to be on separate line and I didn't remove the backticks.

To be pedantic (and POSIX) one would need to use a lot more code to
ensure any command in a pipe sequence exited with the correct status.
I'm assuming echo doesn't fail ;-)

> and you don't want to use ">&" like that ... it's a bashism.  `grep -q` would
> be better, or the POSIX ">/dev/null 2>&1".

Yup, good catch, I always forget ">&" is bash.

Cheers,
Carlos.

  reply	other threads:[~2012-04-27 12:57 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13 17:27 New path for ld.so on ARM hard fp Andrew Haley
2012-04-13 17:29 ` Andrew Haley
2012-04-13 17:35   ` Roland McGrath
2012-04-14 16:35     ` Carlos O'Donell
2012-04-23  8:42       ` Andrew Haley
2012-04-26  3:41         ` Carlos O'Donell
2012-04-26 21:09         ` [WIP] glibc: Use /lib/ld-linux-armhf.so.3 for ARM's -mfloat-abi=hard ABI Carlos O'Donell
2012-04-26 21:43           ` Roland McGrath
2012-04-26 22:03           ` Joseph S. Myers
2012-04-26 22:07             ` Roland McGrath
2012-05-05 21:06               ` Carlos O'Donell
2012-05-05 21:48                 ` Joseph S. Myers
2012-05-05 21:52                 ` Carlos O'Donell
2012-05-05 23:17                   ` Joseph S. Myers
2012-05-06  2:18                     ` Carlos O'Donell
2012-05-06 12:13                       ` Joseph S. Myers
2012-05-06 21:36                         ` Carlos O'Donell
2012-05-06 22:41                           ` Joseph S. Myers
2012-05-07 18:47                   ` Roland McGrath
2012-05-07 18:57                     ` Carlos O'Donell
2012-05-07 19:55                       ` Roland McGrath
2012-05-07 20:00                         ` Carlos O'Donell
2012-05-07 20:00                           ` Carlos O'Donell
2012-05-07 19:11                     ` Joseph S. Myers
2012-05-07 19:41                       ` Roland McGrath
2012-05-07 20:52                         ` Joseph S. Myers
2012-05-07 21:31                           ` Roland McGrath
2012-05-01  4:48             ` Khem Raj
2012-05-01 10:09               ` Joseph S. Myers
2012-04-27  2:18           ` Mike Frysinger
2012-04-27 12:57             ` Carlos O'Donell [this message]
2012-04-19 19:49 ` New path for ld.so on ARM hard fp Joseph S. Myers

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='CADZpyiyTg6=74O8Gk47WLgu1tASRxHb25c5zO4EuqALuhjDaYg@mail.gmail.com' \
    --to=carlos@systemhalted.org \
    --cc=aph@redhat.com \
    --cc=carlos_odonell@mentor.com \
    --cc=libc-ports@sourceware.org \
    --cc=michael.hope@linaro.org \
    --cc=roland@hack.frob.com \
    --cc=steve.mcintyre@linaro.org \
    --cc=vapier@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).