diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-09 10:18:11 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-09 10:18:11 +0000 |
commit | f605da2fb6ec413fbd86e45a78f53cb2e721ab74 (patch) | |
tree | ed3cbb4371c74d24530885a902c34317419358b7 /libc/unistd | |
parent | 066a8e2f6f4637d7239a141bd57e73c82991b690 (diff) |
Be more carefull about erroring out of shell fragments. Try to
enable -falign-functions if avilable.
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libc/unistd/Makefile b/libc/unistd/Makefile index be002c64c..c325eae3a 100644 --- a/libc/unistd/Makefile +++ b/libc/unistd/Makefile @@ -71,13 +71,15 @@ sysconf_tester.o: sysconf.c gen_sysconf_tester.o: sysconf_tester.o getpagesize_tester.o @ld -r -o gen_sysconf_tester.o sysconf_tester.o getpagesize_tester.o - @if nm -s gen_sysconf_tester.o | grep -v "U errno" | grep " U " ;\ - then \ + @if [ nm -s gen_sysconf_tester.o | grep -v "U errno" | grep " U " ] ; then \ + set -e -x; \ echo warning: missing symbols in gen_sysconf_tester.o so using generic sysconf.c ;\ cp -f sysconf.c sysconf_src.c ;\ else \ - if ../extra/gcc-uClibc/gcc-uClibc-$(NATIVE_ARCH) -static -D_UCLIBC_GENERATE_SYSCONF_MAIN sysconf.c sysconf_tester.o -o gen_sysconf && \ - ./gen_sysconf > sysconf_$(NATIVE_ARCH).c ;\ + set -e -x; \ + if ../extra/gcc-uClibc/gcc-uClibc-$(NATIVE_ARCH) -static \ + -D_UCLIBC_GENERATE_SYSCONF_MAIN sysconf.c sysconf_tester.o \ + -o gen_sysconf && ./gen_sysconf > sysconf_$(NATIVE_ARCH).c ;\ then \ echo successfully built sysconf_$(NATIVE_ARCH).c ;\ else \ |