Skip to content

Commit 46866e9

Browse files
committed
Fix for cross-compilation between mingw32 and something else. The choice
of pwd vs. pwd -W is correctly a function of the build system, not the host system.
1 parent 26af72b commit 46866e9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Makefile.global.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.249 2008/12/11 07:34:07 petere Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.250 2009/01/05 09:54:12 petere Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -322,6 +322,8 @@ WANTED_LANGUAGES = @WANTED_LANGUAGES@
322322
# Name of the "template"
323323
PORTNAME= @PORTNAME@
324324

325+
build_os = @build_os@
326+
325327
host_tuple = @host@
326328
host_os = @host_os@
327329
host_cpu = @host_cpu@

src/interfaces/ecpg/test/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.75 2008/12/01 11:37:37 meskes Exp $
1+
# $PostgreSQL: pgsql/src/interfaces/ecpg/test/Makefile,v 1.76 2009/01/05 09:54:13 petere Exp $
22

33
subdir = src/interfaces/ecpg/test
44
top_builddir = ../../../..
@@ -16,7 +16,7 @@ ifdef NO_LOCALE
1616
NOLOCALE += --no-locale
1717
endif
1818

19-
ifneq ($(PORTNAME),win32)
19+
ifneq ($(build_os),mingw32)
2020
abs_builddir := $(shell pwd)
2121
else
2222
abs_builddir := $(shell pwd -W)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy