Correct rule to create tst-locale1.
authorUlrich Drepper <drepper@redhat.com>
Tue, 3 Dec 2002 08:57:59 +0000 (08:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 3 Dec 2002 08:57:59 +0000 (08:57 +0000)
nptl/Makefile

index 5ae8896..c069fe6 100644 (file)
@@ -154,12 +154,12 @@ omit-deps += crti
 CFLAGS-pt-initfini.s = -g0 -fPIC -fno-inline-functions
 endif
 
-include ../Rules
-
 ifeq ($(build-static),yes)
 tests-static += tst-locale1
 endif
 
+include ../Rules
+
 # What we install as libc.so for programs to link against is in fact a
 # link script.  It contains references for the various libraries we need.
 # The libc.so object is not complete since some functions are only defined
@@ -202,6 +202,7 @@ $(addprefix $(objpfx), \
     $(tests) $(test-srcs))): $(objpfx)libpthread.so \
                             $(objpfx)libpthread_nonshared.a
 $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so
+$(addprefix $(objpfx),$(tests-static)): $(objpfx)libpthread.a
 else
 $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
 endif