Re: error compiling postgresql with fedora mingw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 25, 2008 at 02:19:27PM -0500, Tom Lane wrote:
> Jon Burgess <jburgess777@xxxxxxxxxxxxxx> writes:
> > I think the problem with the .a above is due to the default 'ar' failing
> > to process the Windows style object symbols.
> 
> > I managed to build PostgreSQL a couple of weeks back with MinGW on F9. I
> > had to override a few of the default tools, e.g.
> 
> > $ make AR=i686-pc-mingw32-ar DLLTOOL=/usr/i686-pc-mingw32/bin/dlltool
> > DLLWRAP=i686-pc-mingw32-dllwrap
> 
> That makes sense.  Could you have simplified matters by just prepending
> /usr/i686-pc-mingw32/bin to your PATH?

That is a possibility, but we recommend against doing that where posible
in Mingw RPM builds and cannot do it by default, because a number of
programs need to be able to use both the native & mingw versions of 'ar'
in their configure script. eg, they use native toolchain to build a
helper program, that they then use in their build process. So we can't
simply point 'ar' to the mingw version. In autotool'd apps configure
will generally do the right thing & find i6868-pc-mingw32-ae, for other
apps, having a makefile variable AR=ar will at least allow for easy
override when doing a mingw build by adding AR=i686-pc-mingw32-ar to
the make flags.

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux