This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap/7087: sub-make FLAG propagation fails if flag ends with '='
- From: DJ Delorie <dj at redhat dot com>
- To: sdouglass at arm dot com
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jun 2002 12:08:05 -0400
- Subject: Re: bootstrap/7087: sub-make FLAG propagation fails if flag ends with '='
- References: <20020620141954.1475.qmail@sources.redhat.com>
> "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
>
> sed -e s'/[^=][^=]*=$$/XFOO=/'
I wonder if it would be better to just say
's/^STAGE1_CFLAGS=$$/XFOO=/'
and avoid the wildcards completely.