git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/4] msvc: Fix an "unrecognized option" linker warning

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Jan 23, 2010, 00:06 UTC
Message-ID
<4B5A3D8C.3000701@gmail.com>
In-Reply-To
<4B5758BF.9090806@ramsay1.demon.co.uk>
On 20.01.2010 20:25, Ramsay Jones wrote:
Show 22 quoted lines
> Having recently added support for building git-imap-send on
> Windows, we now link against OpenSSL libraries, and the linker
> issues the following warning:
>
>      warning LNK4044: unrecognized option '/lssl'; ignored
>
> In order to suppress the warning, we change the msvc linker
> script to translate an '-lssl' parameter to the ssleay32.lib
> library.
>
> Note that the linker script was already including ssleay32.lib
> (along with libeay32.lib) as part of the translation of the
> '-lcrypto' library parameter.  However, libeay32.dll does not
> depend on ssleay32.dll and can be used stand-alone, so we remove
> ssleay32.lib from the '-lcrypto' translation.
>
> The dependence of ssleay32.dll on libeay32.dll is represented in
> the Makefile by the NEEDS_CRYPTO_WITH_SSL build variable.
>
> Also, add the corresponding change to the buildsystem generator.
>
> Signed-off-by: Ramsay Jones<ramsay@ramsay1.demon.co.uk>
Acked-by: Sebastian Schuberth <sschuberth@gmail.com>
-- 
Sebastian Schuberth
Previous: Ramsay Jones
Message 2 of 2 in “msvc: Fix an "unrecognized option" linker warning”
  1. 2/4 msvc: Fix an "unrecognized option" linker warningRamsay Jones, Jan 20, 2010
  2. Sebastian SchuberthJan 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.