Use $? instead of S^ when invoking ar.
[kopensolaris-gnu/glibc.git] / Makerules
index 6c0af11..c1b8a98 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -576,7 +576,7 @@ define do-ar
 topdir=`cd $(..).; pwd`; \
 $(patsubst %/,cd %;,$(objpfx)) \
 $(SHELL) $$topdir/autolock.sh ${O%-lib}.lck $(AR) $(CREATE_ARFLAGS) ${O%-lib} \
-                                                 $(patsubst $(objpfx)%,%,$^)
+                                                 $(patsubst $(objpfx)%,%,$?)
 rm -f $@
 touch $@
 endef