[Xapian-devel] Search::Xapian cygwin fix

Olly Betts olly at survex.com
Thu Sep 20 15:05:52 BST 2007

On Thu, Sep 20, 2007 at 01:59:17PM +0200, Reini Urban wrote:
> The cygwin linker requires -shared, otherwise WinMain at 16 will not be skipped.
> BTW: mingw also. But this should test and fix someone else.

I think all platforms need to use -shared to create a shared object with GCC.

Hmm, looking at the generated Makefile here, the only place $(LD) is
used is in this rule:

	$(RM_F) $@
	$(CHMOD) $(PERM_RWX) $@

And on my Linux box, LDDLFLAGS is set to this in the generated Makefile:

LDDLFLAGS = -shared -L/usr/local/lib 

And that comes from the Config module:

perl -e 'use Config; print "$Config{lddlflags}\n"'

What value does LDDLFLAGS have for you?

Is that the value from Config?


More information about the Xapian-devel mailing list