From dbfba1154f70202dd8b698ffc07429fc1452f839 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 31 Aug 2015 02:30:25 -0500 Subject: remove DEF_WEAK from libc copies --- update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index ad809d8..e3a55da 100755 --- a/update.sh +++ b/update.sh @@ -66,7 +66,7 @@ $CP $libtls_src/tls.h include $CP $libtls_src/tls.h libtls-standalone/include for i in crypto/compat libtls-standalone/compat; do - $CP $libc_src/crypt/arc4random.c \ + for j in $libc_src/crypt/arc4random.c \ $libc_src/crypt/chacha_private.h \ $libc_src/string/explicit_bzero.c \ $libc_src/stdlib/reallocarray.c \ @@ -78,8 +78,9 @@ for i in crypto/compat libtls-standalone/compat; do $libc_src/string/timingsafe_bcmp.c \ $libc_src/string/timingsafe_memcmp.c \ $libcrypto_src/crypto/getentropy_*.c \ - $libcrypto_src/crypto/arc4random_*.h \ - $i + $libcrypto_src/crypto/arc4random_*.h; do + sed "/DEF_WEAK/d" < $j > $i/`basename "$j"` + done done $CP include/compat/stdlib.h \ -- cgit v1.2.3-55-g6feb