Add example script which builds static (possibly cross-compiled) strace
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c8938e08ad
commit
6e5f5b3adb
20
build_static_example.sh
Executable file
20
build_static_example.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
#export CC="i686-gcc"
|
||||
export CC="x86_64-gcc"
|
||||
|
||||
export CFLAGS="-Os\
|
||||
-fomit-frame-pointer\
|
||||
-static\
|
||||
-static-libgcc\
|
||||
-ffunction-sections -fdata-sections\
|
||||
-falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1\
|
||||
-fno-unwind-tables\
|
||||
-fno-asynchronous-unwind-tables\
|
||||
-Wl,--gc-sections\
|
||||
-Wl,-Map=strace.mapfile\
|
||||
"
|
||||
|
||||
autoreconf -i -f
|
||||
./configure #--enable-maintainer-mode
|
||||
make CC="$CC" CFLAGS="$CFLAGS"
|
Loading…
x
Reference in New Issue
Block a user