From ff585d484600880f1768d3b1c4ceb184f3a969ec Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Tue, 28 Apr 2020 22:05:35 +0200 Subject: [PATCH] buildenv/1.3.x: fix LNK4099 warning when linking to libvorbis vorbis.lib(info.obj) : warning LNK4099: PDB 'libvorbis_static.pdb' was not found with 'vorbis.lib(info.obj)' or at 'D:\a\1\s\release\libvorbis_static.pdb'; linking object as if no debug info LINK : error LNK1218: warning treated as error; no output file generated --- buildenv/1.3.x/win32-static/libvorbis.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/buildenv/1.3.x/win32-static/libvorbis.build b/buildenv/1.3.x/win32-static/libvorbis.build index 92b6a679..350a5ede 100755 --- a/buildenv/1.3.x/win32-static/libvorbis.build +++ b/buildenv/1.3.x/win32-static/libvorbis.build @@ -1,5 +1,5 @@ #!/usr/bin/env mumble-build -# Copyright 2013-2014 The 'mumble-releng' Authors. All rights reserved. +# Copyright 2013-2020 The 'mumble-releng' Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file in the source tree or at # . @@ -23,14 +23,21 @@ function prepare { # Set /ARCH:IA32 for MSVS2012+ if we're targetting pure x86. cd win32/VS2010 + if [ ${MUMBLE_BUILD_USE_LTCG} -eq 0 ]; then sed -i -e 's,true,,g' libvorbis/libvorbis_static.vcxproj sed -i -e 's,true,,g' libvorbisfile/libvorbisfile_static.vcxproj fi + if [[ ${VSMAJOR} -gt 10 && "${ARCH}" == "x86" ]]; then sed -i -re "s,,\n NoExtensions,g" libvorbis/libvorbis_static.vcxproj sed -i -re "s,,\n NoExtensions,g" libvorbisfile/libvorbisfile_static.vcxproj fi + + # Bake debug info into binaries... + sed -i -e 's,ProgramDatabase,OldStyle,g' libvorbis/libvorbis_static.vcxproj + sed -i -e 's,ProgramDatabase,OldStyle,g' libvorbisfile/libvorbisfile_static.vcxproj + cd ../.. }