Skip to content

Commit

Permalink
buildenv/1.3.x: fix LNK4099 warning when linking to libvorbis
Browse files Browse the repository at this point in the history
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
  • Loading branch information
davidebeatrici committed Apr 28, 2020
1 parent aaf3de0 commit ff585d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion buildenv/1.3.x/win32-static/libvorbis.build
Original file line number Diff line number Diff line change
@@ -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
# <http://mumble.info/mumble-releng/LICENSE>.
Expand All @@ -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,<WholeProgramOptimization>true</WholeProgramOptimization>,,g' libvorbis/libvorbis_static.vcxproj
sed -i -e 's,<WholeProgramOptimization>true</WholeProgramOptimization>,,g' libvorbisfile/libvorbisfile_static.vcxproj
fi

if [[ ${VSMAJOR} -gt 10 && "${ARCH}" == "x86" ]]; then
sed -i -re "s,<ClCompile>,<ClCompile>\n <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>,g" libvorbis/libvorbis_static.vcxproj
sed -i -re "s,<ClCompile>,<ClCompile>\n <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet>,g" libvorbisfile/libvorbisfile_static.vcxproj
fi

# Bake debug info into binaries...
sed -i -e 's,<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>,<DebugInformationFormat>OldStyle</DebugInformationFormat>,g' libvorbis/libvorbis_static.vcxproj
sed -i -e 's,<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>,<DebugInformationFormat>OldStyle</DebugInformationFormat>,g' libvorbisfile/libvorbisfile_static.vcxproj

cd ../..
}

Expand Down

0 comments on commit ff585d4

Please sign in to comment.