]> granicus.if.org Git - strace/blobdiff - build_static_example.sh
Remove linux/ptp_clock.h
[strace] / build_static_example.sh
index 5e5fb425fe37233650699079de58bdc8580ece68..31ee264f89ddc7fca65577d1b3ed8a709d3f4c72 100755 (executable)
@@ -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\
@@ -15,6 +24,6 @@ export CFLAGS="-Os\
  -Wl,-Map=strace.mapfile\
 "
 
-autoreconf -i -f
-./configure #--enable-maintainer-mode
+./bootstrap
+./configure $BUILDFLAG #--enable-maintainer-mode
 make CC="$CC" CFLAGS="$CFLAGS"