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: 200410120108.i9C18L318394@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-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 Makefile.global to
change settings so I guess we are stuck with what we have currently.

--
Bruce Momjian | http://candle.pha.pa.us
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

Attachment Content-Type Size
unknown_filename text/plain 3.7 KB

In response to

Browse pgsql-hackers-win32 by date

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

Browse pgsql-patches by date

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