This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Moving libc/sys to be linked last
- From: "Jonathan S. Shapiro" <shap at eros-os dot org>
- To: pedro_alves at portugalmail dot pt
- Cc: newlib at sourceware dot org
- Date: Wed, 26 Oct 2005 15:47:42 -0400
- Subject: Re: Moving libc/sys to be linked last
- References: <1130353477.435fd345d69cb@webmail5.portugalmail.pt>
On Wed, 2005-10-26 at 20:04 +0100, pedro_alves@portugalmail.pt wrote:
> Hi all!
> This is my first post to this list.
>
> In my target (arm-wince-pe), I want to override some objects from unix dir,
> but in libc/Makefile.am,
> both SUBDIRS and SUBLIBS don't list sys before the unix dir.
> In my local copy, I moved them to the end, and now I get the wanted effect.
> Is this the right way to do it?
> Is there any reason sys wasn't put the last in the first place?
What you describe would require sys/ to be *first*, not last. The rule
is: "first resolution wins".
However, I suspect that this is not the best way to achieve what you
want. I do not know what the "approved" way is.
shap