This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Support sharing ARM headers for hard and soft float
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-ports at sourceware dot org
- Date: Wed, 30 May 2012 12:27:38 -0700 (PDT)
- Subject: Re: Support sharing ARM headers for hard and soft float
- References: <Pine.LNX.4.64.1205301856110.8161@digraph.polyomino.org.uk>
> +default-abi := $(strip $(shell \
> + ($(default-abi-prog)) | $(CC) $(CFLAGS) $(CPPFLAGS) -E -P -))
Using $(shell ...) in makefiles is pretty disgusting. The compiler
will run every time you run make. What I'd recommend instead is
generating a makefile and including it. The generated file can depend
on config.make or something like that to be sure it gets re-run when
$(CC) et al might reasonably be expected to have changed.