[cmake-developers] [CMake 0011468]: Extra "lib" in -l linker flag: -llibssleay32
Mantis Bug Tracker
mantis at public.kitware.com
Wed Nov 17 05:56:35 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11468
======================================================================
Reported By: Sergey Belyashov
Assigned To:
======================================================================
Project: CMake
Issue ID: 11468
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-11-17 05:56 EST
Last Modified: 2010-11-17 05:56 EST
======================================================================
Summary: Extra "lib" in -l linker flag: -llibssleay32
Description:
I use crosscompiling for building win32 applications on Linux box.
I install required libraries (openssl) to /usr/i686-mingw32 (root of cross
toolchain).
Then I try build my project. Cmake found openssl, CMakeCache.txt contains:
//Path to a file.
OPENSSL_INCLUDE_DIR:PATH=/usr/i686-mingw32/include
//Path to a library.
SSL_EAY:FILEPATH=/usr/i686-mingw32/lib/libssleay32.a
So it is Ok. Then I try compile project and it fails on linking stage:
/usr/libexec/gcc/i686-mingw32/ld: cannot find -llibssleay32
I check link.txt:
.../usr/i686-mingw32/usr/lib/libz.a /usr/i686-mingw32/usr/lib/libvorbisfile
.dll.a /usr/i686-mingw32/usr/lib/libvorbis.dll.a
/usr/i686-mingw32/usr/lib/libogg.dll.a -Wl,-Bstatic -llibssleay32 -llibeay32...
What is it? Why "/usr/i686-mingw32/lib/libssleay32.a" changed to invalid
-llibssleay32?
Steps to Reproduce:
install gentoo
crossdev -t i686-mingw32
crosscompile (manually) openssl-1.0.0a and install to /usr/i686-mingw32
try crosscompile any project uses cmake and links with openssl:
/usr/libexec/gcc/i686-mingw32/ld: cannot find -llibssleay32
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-11-17 05:56 Sergey BelyashovNew Issue
======================================================================
More information about the cmake-developers
mailing list