Skip to content

Commit 42f5b7f

Browse files
authored
fix: don't prefix empty string when interning (#5015)
1 parent 1f9f343 commit 42f5b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ if (S2N_INTERN_LIBCRYPTO)
402402
# copy the static version of libcrypto
403403
cp ${crypto_STATIC_LIBRARY} s2n_libcrypto.a &&
404404
# dump all of the symbols and prefix them with `s2n$`
405-
bash -c "${CMAKE_NM} s2n_libcrypto.a | awk '/ [A-Z] /{print $3\" s2n$\"$3}' | sort | uniq > libcrypto.symbols" &&
405+
bash -c "${CMAKE_NM} s2n_libcrypto.a | awk '/ [A-Z] /{if ($3) print $3\" s2n$\"$3}' | sort | uniq > libcrypto.symbols" &&
406406
# redefine the libcrypto libary symbols
407407
${CMAKE_OBJCOPY} --redefine-syms libcrypto.symbols s2n_libcrypto.a &&
408408
rm -rf s2n_libcrypto &&

0 commit comments

Comments
 (0)