From: Bruce Momjian <pgman@candle.pha.pa.us>
To: ljb <ljb220@mindspring.com>
Cc: pgsql-interfaces@postgresql.org
Cc: markMLl.pgsql-general@telemetry.co.uk
Subject: Re: Building psql.exe using the free Borland compiler
Date: Wed, 31 May 2006 05:16:58 -0400 (EDT)
Message-ID: <200605310916.k4V9GwT29127@candle.pha.pa.us> (raw)
In-Reply-To: <e5iqu7$29cu$1@news.hub.org>
[ CC added for Mark Morgan Lloyd]
Mark, can you comment on this? Borland C++ 5.5.1 handles echo
differently than it does on your machine.
As far as echo, I think you are right that the Win32 command processor
is the one handling that, but I assumed the backslashes were handled by
the Makefile, hence the need for \#.
---------------------------------------------------------------------------
ljb wrote:
> alvherre@commandprompt.com wrote:
> >...
> > but ISTM ljb is the one who needs to find what works ...
>
> Here's my Makefile for testing this:
> ===========================
> all: f1 f2 f3 f4 f5 f6
> f1:
> echo \#define SYSCONFDIR "" > f1
> f2:
> echo \#define SYSCONFDIR \"\" > f2
> f3:
> echo "#define SYSCONFDIR \"\"" > f3
> f4:
> echo '\#define SYSCONFDIR ""' > f4
> f5:
> echo '#define SYSCONFDIR ""' > f5
> f6:
> echo #define SYSCONFDIR "" > f6
> ===========================
> I'm using make from "Borland C++ 5.5.1 for Win32" on Windows 2000.
> Here are the results for the first 4 cases:
> f1: #define SYSCONFDIR ""
> f2: #define SYSCONFDIR \"\"
> f3: "#define SYSCONFDIR \"\""
> f4: '#define SYSCONFDIR ""'
>
> Cases 'f5' and 'f6' don't produce output files at all.
>
> So it seems to me that the patch to bcc32.mak should be reverted (as shown
> below), but that depends on what the original poster (Mark Morgan Lloyd)
> says. If he says the patch is needed, we should figure out why we get
> different results.
>
> --- src/interfaces/libpq/bcc32.mak.orig 2006-04-24 00:03:42.000000000 -0400
> +++ src/interfaces/libpq/bcc32.mak 2006-05-30 19:40:31.000000000 -0400
> @@ -141,7 +141,7 @@
>
> # Have to use \# so # isn't treated as a comment, but MSVC doesn't like this
> pg_config_paths.h: bcc32.mak
> - echo \#define SYSCONFDIR \"\" > pg_config_paths.h
> + echo \#define SYSCONFDIR "" > pg_config_paths.h
>
> "$(OUTDIR)" :
> @if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pgman@candle.pha.pa.us, ljb220@mindspring.com, markMLl.pgsql-general@telemetry.co.uk
Subject: Re: Building psql.exe using the free Borland compiler
In-Reply-To: <200605310916.k4V9GwT29127@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox