Write lib_objs in a loop (still too many args error).
diff --git a/tensorflow/contrib/makefile/Makefile b/tensorflow/contrib/makefile/Makefile
-index 7ea6e34..750ee18 100644
+index 7ea6e34cf5..5205518b12 100644
--- a/tensorflow/contrib/makefile/Makefile
+++ b/tensorflow/contrib/makefile/Makefile
-@@ -812,10 +812,14 @@ all: $(LIB_PATH) $(BENCHMARK_NAME)
+@@ -812,10 +812,13 @@ all: $(LIB_PATH) $(BENCHMARK_NAME)
tensorflow/core/util/version_info.cc: .phony_version_info
tensorflow/tools/git/gen_git_source.sh $@
@@ -12,8 +12,7 @@ index 7ea6e34..750ee18 100644
$(LIB_PATH): $(LIB_OBJS)
@mkdir -p $(dir $@)
- $(AR) $(ARFLAGS) $(LIB_PATH) $(LIB_OBJS)
-+ $(file >$(LIB_OBJS_TMP_FILE),$(LIB_OBJS))
-+ ls -la $(LIB_OBJS_TMP_FILE)
++ @for lib_obj in $(LIB_OBJS); do echo $${lib_obj} >> $(LIB_OBJS_TMP_FILE); done
+ xargs $(AR) $(ARFLAGS) $(LIB_PATH) < $(LIB_OBJS_TMP_FILE)
$(BENCHMARK_NAME): $(BENCHMARK_OBJS) $(LIB_PATH) $(CUDA_LIB_DEPS)
