[vlc-commits] [Git][videolan/vlc][master] package/win32: enable PDB for contrib binaries

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Nov 8 12:37:13 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2c2eb681 by Steve Lhomme at 2024-11-08T12:10:10+00:00
package/win32: enable PDB for contrib binaries

This way it's enabled the same way for all the code we build.

- - - - -


1 changed file:

- extras/package/win32/build.sh


Changes:

=====================================
extras/package/win32/build.sh
=====================================
@@ -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



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c2eb681922e4e2c5aba3f8cc77dfe83cd185563

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c2eb681922e4e2c5aba3f8cc77dfe83cd185563
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list