package/win32: enable PDB for contrib binaries

This way it's enabled the same way for all the code we build.
This commit is contained in:
Steve Lhomme 2024-11-04 14:52:43 +01:00
parent 0085375629
commit 2c2eb68192

View File

@ -343,11 +343,12 @@ info "Building contribs"
echo $PATH
mkdir -p contrib/contrib-$SHORTARCH && cd contrib/contrib-$SHORTARCH
if [ ! -z "$WITH_PDB" ]; then
if [ -n "$WITH_PDB" ]; then
CONTRIBFLAGS="$CONTRIBFLAGS --enable-pdb"
VLC_CFLAGS="$VLC_CFLAGS --start-no-unused-arguments -gcodeview --end-no-unused-arguments"
VLC_CXXFLAGS="$VLC_CXXFLAGS --start-no-unused-arguments -gcodeview --end-no-unused-arguments"
if [ ! -z "$PDB_MAP" ]; then
VLC_CFLAGS="$VLC_CFLAGS --start-no-unused-arguments -g -gcodeview --end-no-unused-arguments"
VLC_CXXFLAGS="$VLC_CXXFLAGS --start-no-unused-arguments -g -gcodeview --end-no-unused-arguments"
VLC_LDFLAGS="$VLC_LDFLAGS --start-no-unused-arguments -Wl,-pdb= --end-no-unused-arguments"
if [ -n "$PDB_MAP" ]; then
VLC_CFLAGS="$VLC_CFLAGS -fdebug-prefix-map='$VLC_ROOT_PATH'='$PDB_MAP'"
VLC_CXXFLAGS="$VLC_CXXFLAGS -fdebug-prefix-map='$VLC_ROOT_PATH'='$PDB_MAP'"
fi