aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-09-08 18:33:24 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-09-08 18:33:34 -0700
commitf7b813dce8c8d67147e3b007e4c880f6a877f810 (patch)
treedeac15547bbb1151f1c768d89fda1f3bae511cfc /ports
parent5a920ef7601ba8ac98f14623be4d43a4e0fd4dee (diff)
downloadvcpkg-f7b813dce8c8d67147e3b007e4c880f6a877f810.tar.gz
vcpkg-f7b813dce8c8d67147e3b007e4c880f6a877f810.zip
[openssl] Actually include the patch for /Z7
Diffstat (limited to 'ports')
-rw-r--r--ports/openssl/EmbedSymbolsInStaticLibsZ7.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/openssl/EmbedSymbolsInStaticLibsZ7.patch b/ports/openssl/EmbedSymbolsInStaticLibsZ7.patch
new file mode 100644
index 000000000..1a8de2c4b
--- /dev/null
+++ b/ports/openssl/EmbedSymbolsInStaticLibsZ7.patch
@@ -0,0 +1,25 @@
+diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl
+index dba96cb..5722f6e 100644
+--- a/util/pl/VC-32.pl
++++ b/util/pl/VC-32.pl
+@@ -154,9 +154,17 @@ else
+ $cflags=$opt_cflags.$base_cflags;
+ }
+
+-# generate symbols.pdb unconditionally
+-$app_cflag.=" /Zi /Fd\$(TMP_D)/app";
+-$lib_cflag.=" /Zi /Fd\$(TMP_D)/lib";
++# generate symbols.pdb when building dlls and embed symbols when building static libs
++if ($shlib)
++ {
++ $app_cflag.=" /Zi /Fd\$(TMP_D)/app.pdb";
++ $lib_cflag.=" /Zi /Fd\$(TMP_D)/lib.pdb";
++ }
++else
++ {
++ $app_cflag.=" /Z7";
++ $lib_cflag.=" /Z7";
++ }
+ $lflags.=" /debug";
+
+ $obj='.obj';