|
From: | Stian Skjelstad |
Subject: | Re: Compiler flags in CC test broken |
Date: | Wed, 22 Feb 2017 08:12:25 +0100 |
> The logic in aclocal (CF_CC_ENV_FLAGS) to detect compiler flags in CC and
> move them to CFLAGS is broken: the sed uses a greedy .* so will only move
> the last option, and any other options are deleted.
>
> My workaround here is this:
>
> - cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
> + cf_flags=`echo "$CC" | cut -f2- -d' '`
hmm - thanks - I'll have to rethink this (and use a better test-case :-)
[Prev in Thread] | Current Thread | [Next in Thread] |