Mercurial > hg > aboriginal
comparison cross-compiler.sh @ 88:f56cfecf4621 0.1.1
Again, use $QEMU_TEST instead of $KARCH. (For mipsel, they don't match.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 14 Jan 2007 15:45:27 -0500 |
parents | cb4ddcaed8eb |
children | 153ba1a0b427 |
comparison
equal
deleted
inserted
replaced
87:cb4ddcaed8eb | 88:f56cfecf4621 |
---|---|
112 # A quick hello world program to test the cross-compiler out. | 112 # A quick hello world program to test the cross-compiler out. |
113 # Build hello.c dynamic, then static, to verify header/library paths. | 113 # Build hello.c dynamic, then static, to verify header/library paths. |
114 | 114 |
115 "${ARCH}-gcc" -Os "${SOURCES}/toys/hello.c" -o "$WORK"/hello && | 115 "${ARCH}-gcc" -Os "${SOURCES}/toys/hello.c" -o "$WORK"/hello && |
116 "${ARCH}-gcc" -Os -static "${SOURCES}/toys/hello.c" -o "$WORK"/hello && | 116 "${ARCH}-gcc" -Os -static "${SOURCES}/toys/hello.c" -o "$WORK"/hello && |
117 ([ -z "${QEMU_TEST}" ] || [ x"$(qemu-"${KARCH}" "${WORK}"/hello)" == x"Hello world!" ]) && | 117 ([ -z "${QEMU_TEST}" ] || [ x"$(qemu-"${QEMU_TEST}" "${WORK}"/hello)" == x"Hello world!" ]) && |
118 echo Cross-toolchain seems to work. | 118 echo Cross-toolchain seems to work. |
119 | 119 |
120 [ $? -ne 0 ] && dienow | 120 [ $? -ne 0 ] && dienow |
121 | 121 |
122 fi | 122 fi |