Re: [PATCH] libgcc: Honor LDFLAGS_FOR_TARGET when linking libgcc_s

2021-08-05 Thread Jeff Law via Gcc-patches
On 8/5/2021 6:41 AM, Jakub Jelinek via Gcc-patches wrote: Hi! When building gcc with some specific LDFLAGS_FOR_TARGET, e.g. LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now those flags propagate info linking of target shared libraries, e.g. lib{ubsan,tsan,stdc++,quadmath,objc,lsan,itm,gphobos,gdruntim

[PATCH] libgcc: Honor LDFLAGS_FOR_TARGET when linking libgcc_s

2021-08-05 Thread Jakub Jelinek via Gcc-patches
Hi! When building gcc with some specific LDFLAGS_FOR_TARGET, e.g. LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now those flags propagate info linking of target shared libraries, e.g. lib{ubsan,tsan,stdc++,quadmath,objc,lsan,itm,gphobos,gdruntime,gomp,go,gfortran,atomic,asan}.so.* but there is one important