DLL object files should not be built with /Zl"
[openssl.git] / Configurations / 10-main.conf
index f9c838c2599244fe2ec221de9847fae5d71cc73c..e2fcf0c1c8adcd4502fc9ba85634d18cd2d02044 100644 (file)
@@ -1238,7 +1238,9 @@ sub vc_wince_info {
         cc               => "cl",
         cflags           => "-W3 -wd4090 -Gs0 -GF -Gy -nologo -DOPENSSL_SYS_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE",
         coutflag         => "/Fo",
-        lib_cflags       => "/Zl /Zi /Fdlib",
+        lib_cflags       => sub { join(" ",
+                                       ($disabled{shared} ? "/Zl" : ()),
+                                       "/Zi /Fdlib") },
         dso_cflags       => "/Zi",
         bin_cflags       => "/Zi /Fdapp",
         lflags           => add("/debug"),