Skip site navigation (1) Skip section navigation (2)

Re: Static build of libpq fails

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: pgsql-hackers-win32(at)postgresql(dot)org,PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Static build of libpq fails
Date: 2004-10-12 01:08:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32pgsql-patches
Dave Page wrote:
> Hi,
> I tried building a static libpq with Mingw, which it seems doesn't work
> any more:
> make[3]: *** No rule to make target `libpq.a', needed by
> `all-static-lib'.  Stop.
> make[3]: Leaving directory `/cvs/pgsql/src/interfaces/libpq'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/cvs/pgsql/src/interfaces'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/cvs/pgsql/src'
> make: *** [all] Error 2
> I can work around this easily enough, however it should obviously get
> fixed at some point.

I got it working easily by doing 'gmake all-static-lib' from the
src/interfaces/libpq directory.  Is it supposed to work somewhere else?

The attached patch adds some pg_config_paths.h dependencies that are
missing.  I am now wondering if we should have that file generated by
configure, but that defeats the ability to modify to
change settings so I guess we are stuck with what we have currently.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-patches by date

Next:From: Neil ConwayDate: 2004-10-12 01:29:26
Subject: contrib/xml,xml2 code cleanup
Previous:From: Tom LaneDate: 2004-10-12 00:37:46
Subject: Re: libpq.dll on win32

pgsql-hackers-win32 by date

Next:From: Jason TishlerDate: 2004-10-12 11:30:00
Subject: Re: [HACKERS] Need for DLLINIT in Makefile.shlib
Previous:From: Bruce MomjianDate: 2004-10-12 01:06:26
Subject: Re: open item: tablespace handing in pg_dump/pg_restore

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group