12745e
diff -pruN glibc-2.17-c758a686/rtkaio/Makefile glibc-2.17-c758a686/rtkaio/Makefile
29e444
--- glibc-2.17-c758a686/rtkaio/Makefile	2011-10-19 16:34:41.000000000 +0530
12745e
+++ glibc-2.17-c758a686/rtkaio/Makefile	2013-08-13 18:23:21.064888432 +0530
29e444
@@ -55,7 +55,7 @@ extra-libs-others := $(extra-libs)
29e444
 
29e444
 include $(..)Makeconfig
29e444
 
29e444
-ifeq (yesyes,$(build-shared)$(elf))
29e444
+ifeq (yes,$(build-shared))
29e444
 generated += librt.so$(librt.so-version)
29e444
 
29e444
 $(objpfx)librt.so$(librt.so-version): $(objpfx)librtkaio.so; $(make-link)
29e444
@@ -73,7 +73,7 @@ CPPFLAGS-librtkaio += -DIS_IN_librt=1 -I
29e444
 
29e444
 rpath-dirs := $(patsubst rt,rtkaio,$(rpath-dirs))
29e444
 
29e444
-ifeq (yesyes,$(build-shared)$(elf))
29e444
+ifeq (yes,$(build-shared))
29e444
 others: $(objpfx)librt.so$(librt.so-version)
29e444
 endif
29e444
 
29e444
@@ -81,8 +81,7 @@ endif
29e444
 # This ensures they will load libc.so for needed symbols if loaded by
29e444
 # a statically-linked program that hasn't already loaded it.
29e444
 $(objpfx)librtkaio.so: $(common-objpfx)libc.so $(common-objpfx)libc_nonshared.a \
29e444
-		   $(shared-thread-library) \
29e444
-		   $(if $(filter yes,$(elf)), $(elfobjdir)/ld.so)
29e444
+		   $(shared-thread-library) $(elfobjdir)/ld.so
29e444
 
29e444
 ifeq (yes,$(build-shared))
29e444
 $(addprefix $(objpfx),$(tests)): $(objpfx)librtkaio.so $(shared-thread-library)