From: Andrew Deason Date: Wed, 3 Oct 2012 19:44:46 +0000 (-0500) Subject: sys: Split up syscall.lo 'echo's X-Git-Tag: upstream/1.8.0_pre1^2~1937 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=720ff46271766ac88c704a03a5c2dfa30bcb843b;p=packages%2Fo%2Fopenafs.git 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 --- 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