diff options
author | Bruce Momjian | 2004-11-08 05:23:26 +0000 |
---|---|---|
committer | Bruce Momjian | 2004-11-08 05:23:26 +0000 |
commit | 7279a919137288c050f324467f51f5d31bb6ac40 (patch) | |
tree | 8afd7c66deda744ce4010ec4b30c2a932b8ec8cb | |
parent | 9e78ba20cc0146eec46562b05467c7cb10ae94d9 (diff) |
Allow win32/cygwin link against the first matching library symbol rather
than erroring out. This is the Unix behavior.
-rw-r--r-- | src/bin/pg_dump/Makefile | 6 | ||||
-rw-r--r-- | src/template/cygwin | 5 | ||||
-rw-r--r-- | src/template/win32 | 4 |
3 files changed, 9 insertions, 6 deletions
diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile index 707e398680..e018f4a303 100644 --- a/src/bin/pg_dump/Makefile +++ b/src/bin/pg_dump/Makefile @@ -22,12 +22,6 @@ OBJS= pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o \ EXTRA_OBJS = $(top_builddir)/src/backend/parser/keywords.o -# Not sure why MinGW needs this but it prevents a link failure -# of duplicate definitions for pg_tolower(). 2004-10-06 -ifeq ($(PORTNAME), win32) -EXTRA_OBJS += $(top_builddir)/src/port/exec.o -endif - all: submake-libpq submake-libpgport submake-backend pg_dump pg_restore pg_dumpall pg_dump: pg_dump.o common.o pg_dump_sort.o $(OBJS) $(libpq_builddir)/libpq.a diff --git a/src/template/cygwin b/src/template/cygwin index 9b342ba8ab..ae7bb16bd1 100644 --- a/src/template/cygwin +++ b/src/template/cygwin @@ -1 +1,6 @@ SRCH_LIB="/usr/local/lib" + +# This is required to link pg_dump because it finds pg_toupper() in +# libpq and pgport +LDFLAGS="-Wl,--allow-multiple-definition" + diff --git a/src/template/win32 b/src/template/win32 index e69de29bb2..e9ab1fe7a5 100644 --- a/src/template/win32 +++ b/src/template/win32 @@ -0,0 +1,4 @@ +# This is required to link pg_dump because it finds pg_toupper() in +# libpq and pgport +LDFLAGS="-Wl,--allow-multiple-definition" + |