This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Make $(xtests) depend on libpthread.a and properly rundynamic tests
> On Tue, Oct 9, 2012 at 2:13 PM, Roland McGrath <roland@hack.frob.com> wrote:
> > The dependency addition is fine.
> >
> > You need to explain why those tests shouldn't work with static linking.
> > If there is no good reason they shouldn't, but they don't, then they
> > just need to be fixed.
>
> There are
>
> $(objpfx)tst-cleanup4: $(objpfx)tst-cleanup4aux.o $(shared-thread-library)
> $(objpfx)tst-cleanupx4: $(objpfx)tst-cleanup4aux.o $(shared-thread-library)
> $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so
>
> Those tests use shared libraries.
So the makefile builds them with shared libraries. If that's all there is,
then you just need to fix the makefile to use the right dependencies in the
static-only case.