Olly, The cygwin linker requires -shared, otherwise WinMain at 16 will not be skipped. BTW: mingw also. But this should test and fix someone else. -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://spacemovie.mur.at/ http://helsinki.at/ -------------- next part -------------- A non-text attachment was scrubbed... Name: Search-Xapian-1.0.2.0-cyg.patch Type: application/octet-stream Size: 478 bytes Desc: not available URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20070920/69f3343f/attachment.obj>
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: $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).exists $(EXPORT_LIST) $(PERL_ARCHIVE) $(PERL_ARCHIVE_AFTER) $(INST_DYNAMIC_DEP) $(RM_F) $@ $(LD) $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) \ $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST) \ $(INST_DYNAMIC_FIX) $(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? Cheers, Olly
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've committed the fix for Cywgin. Can someone with MinGW comment on what we need to do there? Cheers, Olly
Maybe Matching Threads
- Antwort: Re: Antwort: Re: OpenSSL Installation Problem after Migration AIX 4.3.3 to AIX 5.2
- Evil is the pthread thingy...
- [LLVMdev] Problems building LLVM 2.2 for ARM
- 1.1b13 build in FreeBSD fails using 'make'; 'gmake' apparently required
- [LLVMdev] Problems building LLVM 2.2 for ARM