[Xapian-devel] xapian-config output / msys

Eric Lindblad geirfuglaps at yahoo.com
Tue Aug 11 22:10:39 BST 2015


Report by Eric Lindblad [11-08-15]
http://www.ericlindblad.blogspot.com

The output of C:\xapian\bin\xapian-config is a bit confusing up to and including -lws2_32.

Microsoft Windows XP [version 5.1.2600] Home Edition 32 bit
gcc (version 4.5.2) from HaskellPlatform-2013.2.0.0-setup.exe
zlib (version 1.2.5) from gtk+-bundle_2.24.10-20120208_win32.zip
MSYS-1.0.11.exe
Perl v5.8.8 MSWin32-x86-multi-thread [built with Borland C++ Compiler 5.5 and dmake].
xapian-core-1.2.21.tar.xz

$ export PATH=${PATH}:/c/programmer/borland/bcc55/bin:\
> /c/programmer/perl/5.8.8/bin/mswin32-x86-multi-thread

PKGNAM=xapian-core
VERSION=${VERSION:-1.2.21}

env CPPFLAGS=-I/c/programmer/gtk/include \
LDFLAGS=-L/c/programmer/gtk/lib ./configure \
--prefix=/c/xapian --sysconfdir=/etc --localstatedir=/var \
--mandir=/c/xapian/man --docdir=/c/xapian/doc/$PKGNAM-$VERSION \
--disable-static CC=/c/programmer/haskell/mingw/bin/gcc

Files:

C:\Programmer\Haskell\mingw\lib\librpcrt4.a
C:\Programmer\Haskell\mingw\lib\libws2_32.a
C:\Programmer\gtk\lib\libz.dll.a
C:\xapian\lib\libxapian.dll.a
C:\Programmer\Haskell\mingw\lib\gcc\mingw32\4.5.2\libstdc++.dll.a

NB: The contents of my fstab file.

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Eric>TYPE C:\MSYS\etc\fstab
c:/programmer/haskell/mingw /mingw

C:\Documents and Settings\Eric>

$ xapian-config --cxxflags
-I/c/xapian/include

$ xapian-config --libs
-Wl,--enable-runtime-pseudo-reloc -L/c/xapian/lib -lxapian -lrpcrt4 -L/c/program
mer/gtk/lib -lz -lws2_32 -L/mingw/lib/gcc/mingw32/4.5.2 -lstdc++ -L/projetos/gcc
/bld/452/build/mingw32/libstdc++-v3/src -L/projetos/gcc/bld/452/build/mingw32/li
bstdc++-v3/src/.libs -L/projetos/gcc/bld/452/build/mingw32/winsup/mingw -L/proje
tos/gcc/bld/452/build/mingw32/winsup/w32api/lib -L/projetos/gcc/bld/452/build/mi
ngw32/libstdc++-v3/src -L/projetos/gcc/bld/452/build/mingw32/libstdc++-v3/src/.l
ibs -L/projetos/gcc/bld/452/build/mingw32/winsup/mingw -L/projetos/gcc/bld/452/b
uild/mingw32/winsup/w32api/lib

$ xapian-config --ltlibs
-Wl,--enable-runtime-pseudo-reloc /c/xapian/lib/libxapian.la

$ xapian-config --static

$ xapian-config --swigflags
-I/c/xapian/include

$



More information about the Xapian-devel mailing list