On Jun 25 16:42, Jon Turney wrote:
> On 25/06/2025 12:39, Corinna Vinschen wrote:
> > On Jun 25 12:15, Jon Turney wrote:
> > > On 25/06/2025 08:47, Corinna Vinschen wrote:
> > > [...]
> > > > > diff --git a/winsup/cygwin/cygwin.sc.in b/winsup/cygwin/cygwin.sc.in
> > > > > index 5007a3694..3322810cc 100644
> > > > > --- a/winsup/cygwin/cygwin.sc.in
> > > > > +++ b/winsup/cygwin/cygwin.sc.in
> > > > > @@ -1,6 +1,9 @@
> > > > >    #ifdef __x86_64__
> > > > >    OUTPUT_FORMAT(pei-x86-64)
> > > > >    SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api"); 
> > > > > SEARCH_DIR("=/usr/lib/w32api");
> > > > > +#elif __aarch64__
> > > > > +OUTPUT_FORMAT(pei-aarch64-little)
> > > > > +SEARCH_DIR("/usr/aarch64-pc-cygwin/lib/w32api"); 
> > > > > SEARCH_DIR("=/usr/lib/w32api");
> > > > 
> > > > Given that /usr/lib/w32api is arch independent, maybe we should
> > > > take out that SEARCH_DIR from the arch dependent code, i.e.
> > > > 
> > > > if x86_64
> > > > SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api");
> > > > elif aarch
> > > > SEARCH_DIR("/usr/aarch64-pc-cygwin/lib/w32api");
> > > > else
> > > > error
> > > > endif
> > > > SEARCH_DIR("=/usr/lib/w32api");
> > > > 
> > > > What do you think?
> > > > 
> > > 
> > > Maybe even a pair of comments, to identify that the first search path in 
> > > the
> > > sys-root when cross-compiling, the second is for when building natively?
> > > 
> > > (I'm guessing that's what's going on?)
> > > 
> > > (Hmm... in which case, couldn't the first one be written as just
> > > "=/lib/w32api"? (since the '=' stands for $SYSROOT?). But maybe there's 
> > > some
> > > wrinkle which prevents that from working?)
> > 
> > It might work, but it would also enable the /lib/w32api search path
> > on a native install.
> 
> Which is what /usr/lib/w32api is bound to, anyhow, so uh?

So you're trying to tell me we could get rid of the entire thing
and just set a single search path

  SEARCH_DIR("=/lib/w32api");

?

Somebody would have to try that...


Corinna

Reply via email to