Skip to content

Commit

Permalink
[openssl] Actually include the patch for /Z7
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Sep 9, 2017
1 parent 5a920ef commit f7b813d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ports/openssl/EmbedSymbolsInStaticLibsZ7.patch
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit f7b813d

Please sign in to comment.