add musl 1.1.24 memcpy impls (C and x86_64 asm)
[rofl0r-memcpy-test.git] / build.sh
blobb786c8e639c9d295dce4c12ea86f872eb1797f58
1 #!/bin/sh
2 if [ -z "$1" ] ; then
3 echo error, pass filename of file containing mymemcpy
4 exit 1
5 fi
7 [ -z "$CC" ] && CC=gcc
8 $CC -c dummyfuncs.c -o dummyfuncs.o
9 $CC -D_GNU_SOURCE -D_BSD_SOURCE -O3 -finline-functions -DFILENAME=\"$1\" -c memcpy_test.c -o memcpy_test.o
10 $CC $OPTS -std=c99 -c "$1" -o mymemcpy.o
11 $CC dummyfuncs.o memcpy_test.o mymemcpy.o -o test