Compile 32/64 monkey_runner at the same time + strip symbols for size.

This commit is contained in:
Daniel Goldberg 2017-09-18 10:55:56 +03:00
parent 274f758239
commit 7f7b164561
1 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
gcc -c -Wall -Werror -fpic sc_monkey_runner.c gcc -c -Wall -Werror -fpic -m64 sc_monkey_runner.c
gcc -shared -o sc_monkey_runner.so sc_monkey_runner.o gcc -shared -m64 -o sc_monkey_runner_64.so sc_monkey_runner.o
rm sc_monkey_runner.o
strip sc_monkey_runner_64.so
gcc -c -Wall -Werror -fpic -m32 sc_monkey_runner.c
gcc -shared -m32 -o sc_monkey_runner_32.so sc_monkey_runner.o
rm sc_monkey_runner.o
strip sc_monkey_runner_32.so