arrfab / rpms / glibc

Forked from rpms/glibc 4 years ago
Clone

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

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