[xmlsec] Building statically

Floodeenjr, Thomas thomas_floodeenjr at mentor.com
Mon Oct 10 08:45:58 PDT 2011


Hello,

Is there a way to build only static xmlsec libraries? When I attempt to do so, the dynamic libraries still try to build.

I am setting these options: static=yes with-dl=no iconv=no debugno crypto=openssl unicode=no nt4=no xslt=no


Which generates thiw configure.txt:

# .\configure.txt
# This file is generated automatically by configure.js.

XMLSEC_VERSION_MAJOR=1
XMLSEC_VERSION_MINOR=2
XMLSEC_VERSION_SUBMINOR=16
BASEDIR=..
XMLSEC_SRCDIR=..\src
APPS_SRCDIR=..\apps
BINDIR=binaries
WITH_CRYPTO=openssl
WITH_DEFAULT_CRYPTO=openssl
WITH_OPENSSL=1
WITH_OPENSSL_VERSION=XMLSEC_OPENSSL_098
WITH_NSS=0
WITH_MSCRYPTO=0
WITH_LIBXSLT=0
WITH_ICONV=0
WITH_NT4=0
UNICODE=0
DEBUG=0
STATIC=1
WITH_DL=0
PREFIX=C:\Build\slimming1\xmlsec1-1.2.16\..\install\win32
BINPREFIX=$(PREFIX)\bin
INCPREFIX=$(PREFIX)\include
LIBPREFIX=$(PREFIX)\lib
SOPREFIX=$(PREFIX)\lib
INCLUDE=$(INCLUDE);C:\Build\slimming1\xmlsec1-1.2.16\..\install\win32\include;C:\Build\slimming1\xmlsec1-1.2.16\..\install\win32\include;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
LIB=$(LIB);C:\Build\slimming1\xmlsec1-1.2.16\..\install\win32\lib;C:\Build\slimming1\xmlsec1-1.2.16\..\install\win32\lib;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB;C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;


Yet, dlls are still attempted:

	link.exe /nologo /LIBPATH:binaries /LIBPATH:C:\Build\slimming1\xmlsec1-1.2.16\..\install\win32\lib /DEBUG /DLL /VERSION:1.2  /IMPLIB:binaries\libxmlsec-openssl.lib /OUT:binaries\libxmlsec-openssl.dll  libxmlsec_openssl.int\app.obj libxmlsec_openssl.int\bn.obj  libxmlsec_openssl.int\ciphers.obj  libxmlsec_openssl.int\crypto.obj  libxmlsec_openssl.int\digests.obj  libxmlsec_openssl.int\evp.obj  libxmlsec_openssl.int\hmac.obj  libxmlsec_openssl.int\kt_rsa.obj  libxmlsec_openssl.int\kw_aes.obj  libxmlsec_openssl.int\kw_des.obj  libxmlsec_openssl.int\signatures.obj  libxmlsec_openssl.int\strings.obj  libxmlsec_openssl.int\symkeys.obj  libxmlsec_openssl.int\x509.obj  libxmlsec_openssl.int\x509vfy.obj libxmlsec.lib  libxml2.lib libeay32.lib wsock32.lib kernel32.lib user32.lib gdi32.lib
LINK : fatal error LNK1104: cannot open file 'libeay32.lib'

I am building only static OpenSSL libraries.

Thanks,
-Tom


Thomas Floodeen, Jr.
Mentor Graphics BSD
720.494.1133



More information about the xmlsec mailing list