Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
common-apps: fix gdb BCryptGenRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Nov 5, 2021
1 parent ca20048 commit 20b31fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/common-apps-functions-source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,11 @@ function build_gdb()
# ???
CPPFLAGS+=" -DPy_BUILD_CORE_BUILTIN=1"

# Hack to place the bcrypt library at the end of the list of libraries,
# to avoid 'undefined reference to BCryptGenRandom'.
# Using LIBS does not work, the order is important.
export DEBUGINFOD_LIBS="-lbcrypt"

# From Arm script.
LDFLAGS="${XBB_LDFLAGS_APP} -Wl,${XBB_FOLDER_PATH}/mingw/lib/CRT_glob.o"
# Workaround for undefined reference to `__strcpy_chk' in GCC 9.
Expand Down

0 comments on commit 20b31fa

Please sign in to comment.