Changes to update Tomato RAF.
[tomato.git] / release / src / router / dnscrypt / src / libnacl / okcompilers / do
blobbc961e02725a35649ca43123c330e1abb5235a91
1 #!/bin/sh -e
3 mkdir -p bin
5 echo '#!/bin/sh' > bin/okabi
6 echo 'echo local' >> bin/okabi
8 exec < c
9 echo '#!/bin/sh' > bin/okc-local
10 while read compiler; do
11 $compiler lib.c main.c -o test-c || continue
12 echo "echo $compiler" >> bin/okc-local
13 done
15 echo '#!/bin/sh' > bin/okcpp-local
17 echo '#!/bin/sh' > bin/oklibs-local
18 echo 'echo " -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -L/usr/local/lib -ldl -lm "' >> bin/oklibs-local
20 echo '#!/bin/sh' > bin/okar-local
21 echo 'exec mipsel-uclibc-ar "$@"' >> bin/okar-local
23 chmod +x bin/ok*