From 720ff46271766ac88c704a03a5c2dfa30bcb843b Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 3 Oct 2012 14:44:46 -0500 Subject: [PATCH] sys: Split up syscall.lo 'echo's Currently we echo a string to syscall.lo to generate it. However, 'echo' is often a shell builtin, and some shells (such as bash) do not interpret escape codes like \n unless the -e option is given. So, this results in syscall.lo containing a single commented line, which results in .libs/libafsrpc_sys.a not getting created, which later on causes errors. Instead, just split the syscall.lo generation into separate echo invocations, to make sure we work everywhere. Change-Id: I8a6ed42a0837086de604be0936d830f0f4558ebf Reviewed-on: http://gerrit.openafs.org/8202 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- src/sys/Makefile.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/sys/Makefile.in b/src/sys/Makefile.in index ff6a9f2d3..6ffc2eea4 100644 --- a/src/sys/Makefile.in +++ b/src/sys/Makefile.in @@ -135,9 +135,11 @@ syscall.lo: syscall.s touch syscall.c ; \ $(CC) $(AFS_CFLAGS) -c syscall.c -o syscall.o; \ ;; \ - esac ; \ - echo "# Generated by libtool (GNU libtool) 0.0.0\npic_object='syscall.o'\nnon_pic_object='syscall.o'" > syscall.lo - + esac + rm -f $@ + echo "# Generated by libtool (GNU libtool) 0.0.0" > $@ + echo "pic_object='syscall.o'" >> $@ + echo "non_pic_object='syscall.o'" >> $@ afssyscalls.lo: afssyscalls.c afssyscalls.h glue.lo: glue.c afssyscalls.h -- 2.39.5