Blame SOURCES/glibc-fedora-nptl-linklibc.patch

ce426f
diff -Nru glibc-2.17-c758a686/nptl/Makefile glibc-2.17-c758a686/nptl/Makefile
ce426f
--- glibc-2.17-c758a686/nptl/Makefile	2012-06-05 07:42:49.000000000 -0600
ce426f
+++ glibc-2.17-c758a686/nptl/Makefile	2012-06-07 12:15:21.816318678 -0600
ce426f
@@ -529,15 +529,19 @@ $(addprefix $(objpfx), \
ce426f
     $(tests) $(xtests) $(test-srcs))): $(objpfx)libpthread.so \
ce426f
 				       $(objpfx)libpthread_nonshared.a
ce426f
 $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so
ce426f
-# $(objpfx)../libc.so is used instead of $(common-objpfx)libc.so,
ce426f
+# $(objpfx)linklibc.so is used instead of $(common-objpfx)libc.so,
ce426f
 # since otherwise libpthread.so comes before libc.so when linking.
ce426f
 $(addprefix $(objpfx), $(tests-reverse)): \
ce426f
-  $(objpfx)../libc.so $(objpfx)libpthread.so \
ce426f
+  $(objpfx)linklibc.so $(objpfx)libpthread.so \
ce426f
   $(objpfx)libpthread_nonshared.a
ce426f
 $(objpfx)../libc.so: $(common-objpfx)libc.so ;
ce426f
 $(addprefix $(objpfx),$(tests-static) $(xtests-static)): $(objpfx)libpthread.a
ce426f
 
ce426f
 $(objpfx)tst-atfork2.out: $(objpfx)tst-atfork2mod.so
ce426f
+
ce426f
+$(objpfx)linklibc.so: $(common-objpfx)libc.so
ce426f
+	ln -s ../libc.so $@
ce426f
+generated += libclink.so
ce426f
 else
ce426f
 $(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a
ce426f
 endif