Skip to content

Commit

Permalink
Add -MD to link with the thread-safe version of libc
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Carotti authored and nacho committed Sep 5, 2023
1 parent c7dc80f commit ab041f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gvsbuild/patches/ffmpeg/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if [ "$build_type" = "debug" ]; then
configure_cmd[idx++]="--enable-debug"
# FIXME: the -Od and -Zi instructions are overriden in the compilation command
configure_cmd[idx++]="--extra-cflags=\"-Od -Zi -MDd\""
else
configure_cmd[idx++]="--extra-cflags=-MD"
fi

if [ "$enable_gpl" = "enable_gpl" ]; then
Expand Down
2 changes: 2 additions & 0 deletions gvsbuild/patches/x264/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ configure_cmd[idx++]="--extra-cflags=-DNO_PREFIX"
if [ "$build_type" = "debug" ]; then
configure_cmd[idx++]="--enable-debug"
configure_cmd[idx++]="--extra-cflags=-MDd -Od -Zi"
else
configure_cmd[idx++]="--extra-cflags=-MD"
fi

if [ "$build_type" = "debug-optimized" ]; then
Expand Down

0 comments on commit ab041f0

Please sign in to comment.