diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2013-06-26 15:07:23 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2013-06-26 15:07:23 +0200 |
commit | aeb6e304931ee789e741a3b47247c541f3cf55f6 (patch) | |
tree | a320bd5c8bfad37fde5e88cfeae386ba1afa1b3e /build_static_example.sh | |
parent | c8511f07aba78178f8528e22a8daa438347eb4fa (diff) | |
download | strace-aeb6e304931ee789e741a3b47247c541f3cf55f6.tar.gz strace-aeb6e304931ee789e741a3b47247c541f3cf55f6.tar.bz2 strace-aeb6e304931ee789e741a3b47247c541f3cf55f6.tar.xz |
Update build_static_example.sh
Now it also contains a tested example of i686 build on 64-bit host.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'build_static_example.sh')
-rwxr-xr-x | build_static_example.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build_static_example.sh b/build_static_example.sh index 5e5fb42..5c0e5fa 100755 --- a/build_static_example.sh +++ b/build_static_example.sh @@ -1,6 +1,15 @@ #!/bin/sh -e +BUILDFLAG="" + +#BUILDFLAG="--build=i686" #export CC="i686-gcc" +# -mpreferred-stack-boundary=2 can be used to prevent gcc 4.2.x +# from aligning stack to 16 bytes. (Which is gcc's way of supporting SSE). +# For me it saves about 6k of text segment. +# This may be unsafe if your libc expects 16 byte stack alignment +# on function entry. + export CC="x86_64-gcc" export CFLAGS="-Os\ @@ -16,5 +25,5 @@ export CFLAGS="-Os\ " autoreconf -i -f -./configure #--enable-maintainer-mode +./configure $BUILDFLAG #--enable-maintainer-mode make CC="$CC" CFLAGS="$CFLAGS" |