[RFC/PATCH] step 3, linking in gnu libobjc instead of NeXT^wApple's libobjc

James E Wilson wilson@specifixinc.com
Tue Jul 27 09:44:00 GMT 2004


Andrew Pinski wrote:
> 	* gcc.c (spec_function): Add replace-outfile.
> 	(replace_outfile_spec_function): New function.
> 	* config/darwin.h (LINK_SPEC): Add replace
> 	-lobjc with -lobjc-gnu if -fgnu-runtime is
> 	supplied.
> 	* invoke.texi (replace-outfile): Document.

It is a pity that we don't have an objective C driver that automatically 
adds the -lobjc option.  It would be easier to handle this problem if we 
did.  But since we don't, I don't see a cleaner way to handle this.

OK.

> +   This looks for the first agrument in the outfiles array's name and replaces it

agrument -> argument
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc-patches mailing list