Skip to content

Commit

Permalink
fix: don't prefix empty string when interning (#5015)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmayclin authored Jan 10, 2025
1 parent 1f9f343 commit 42f5b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ if (S2N_INTERN_LIBCRYPTO)
# copy the static version of libcrypto
cp ${crypto_STATIC_LIBRARY} s2n_libcrypto.a &&
# dump all of the symbols and prefix them with `s2n$`
bash -c "${CMAKE_NM} s2n_libcrypto.a | awk '/ [A-Z] /{print $3\" s2n$\"$3}' | sort | uniq > libcrypto.symbols" &&
bash -c "${CMAKE_NM} s2n_libcrypto.a | awk '/ [A-Z] /{if ($3) print $3\" s2n$\"$3}' | sort | uniq > libcrypto.symbols" &&
# redefine the libcrypto libary symbols
${CMAKE_OBJCOPY} --redefine-syms libcrypto.symbols s2n_libcrypto.a &&
rm -rf s2n_libcrypto &&
Expand Down

0 comments on commit 42f5b7f

Please sign in to comment.