This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Support for optional library files in specs
- From: DJ Delorie <dj at redhat dot com>
- To: thorpej at wasabisystems dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 15:34:39 -0500
- Subject: Re: RFC: Support for optional library files in specs
- References: <20021028120858.E19682@dhcp7.wlan.shagadelic.org>
I wonder if it would be feasible and/or easy to add a
function-call-type spec (like make uses) so that we can do some
arbitrary extensions? I'm thinking...
%{?boolean-function(args) {iftrue} {ifelse}}
Your example would then be:
%{?lib-exists(crti%O) {crti%O} {}}
It would be a cool extension to this is backends could register
functions for their own specs...