Re: [PATCH] newlib: stop clobbering LDFLAGS with non-standard $ldflags
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <ZSzCTyU+CwUDpl7A@vapier> |
On 14 Apr 2023 23:51, Thomas Schwinge wrote: > On 2022-01-20T23:51:52-0500, Mike Frysinger <[email protected]> wrote: > > Adjust the testsuite to match. > > > --- a/newlib/testsuite/lib/newlib.exp > > +++ b/newlib/testsuite/lib/newlib.exp > > @@ -66,13 +66,13 @@ proc newlib_target_compile { source dest type options } { > > [target_info needs_status_wrapper] != "0" && \ > > [info exists gluefile] } { > > lappend options "libs=$gluefile" > > - lappend options "ldflags=$wrap_flags" > > + lappend options "LDFLAGS=$wrap_flags" > > } > > > > if [string match $host_triplet $target_triplet] then { > > if [string match "i686-pc-linux-gnu" $host_triplet] then { > > lappend options "libs=$objdir/crt0.o -lc -lgcc" > > - lappend options "ldflags=-nostdlib -L$objdir/.libs [newlib_include_flags]" > > + lappend options "LDFLAGS=-nostdlib -L$objdir/.libs [newlib_include_flags]" > > } > > } > > ..., is that really correct? As far as I know, DejaGnu only looks for > the lower-case 'ldflags' in 'options', as documented in > '[...]/share/dejagnu/target.exp'. (I just noticed this while looking for > something else; I don't have any toolchains exercising the code paths > you've changed.) tbh, i'm not sure. i tried running the testsuite a few ways, but doesn't seem to really work :/. would be nice if these worked out of the box better. maybe with the GNU sim by default or something. -mike
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEfjLn+uywF2RXRpXdyTaAqES06MkFAmUswk8ACgkQyTaAqES0 6MnvQAwA2H+gtYTBaB42ISGq61T4rC+A+dAao8nrvCHfB7wm+t66gVohq8PHt+I1 d6LK8VrIsPs4hMbhuv02gREhgJGEins8ZHt3bcOG5iCuKb4YUsQ8a1lptDeEXndc u9OTZXMO5GUgnG3/GPHQjEUr7puBgd3HuF+Ldn5FE3UXJGu7wW2sS5FYsjnPdpRl rNevPbczyWBN5tFIputFeDl9s539shQAXDZRWbsyaXB95IA+5DXOXdwe8SLU4ojT mosEMEDxMzkKvy+LTH4z9TrGUSUPS3dIEXZDEIkRkMvrN3mrm3k2DocEDzwg4lYg WSMzAUe3dEFdDydFi7V1rD5e3qMo+FoT3T+U6UrInAXPRVsKFdoq4UlYTbve9uih 0jyvhBFoz7CoxsL2Gbh2BwIB+QYwk+CKfN/Y/FfdYTlIl+Y3UlODrl/P/3jqgPV7 /olip3cYPQ0fjrWhr8jFpth9YpHbnn83AR7DrgjrQtt8fPHU55WpTd/ZrMCiddz7 y+XXpDSI =EkCD -----END PGP SIGNATURE-----