Skip to content

Commit bb85f1b

Browse files
committed
Suppress duplicate rules for lib$(NAME).a on WIN32 and Cygwin.
Andrew Dunstan
1 parent 6beb6fa commit bb85f1b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Makefile.shlib

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.86 2004/10/16 03:26:43 momjian Exp $
9+
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.87 2004/11/16 21:51:13 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -220,10 +220,12 @@ ifeq ($(PORTNAME), cygwin)
220220
shlib = $(NAME)$(DLSUFFIX)
221221
# needed for /contrib modules, not sure why
222222
SHLIB_LINK += -lpgport
223+
haslibarule = yes
223224
endif
224225

225226
ifeq ($(PORTNAME), win32)
226227
shlib = lib$(NAME)$(DLSUFFIX)
228+
haslibarule = yes
227229
endif
228230

229231
ifeq ($(PORTNAME), beos)
@@ -257,13 +259,15 @@ ifndef LORDER
257259
MK_NO_LORDER := true
258260
endif
259261

262+
ifndef haslibarule
260263
lib$(NAME).a: $(OBJS)
261264
ifdef MK_NO_LORDER
262265
$(LINK.static) $@ $^
263266
else
264267
$(LINK.static) $@ `$(LORDER) $^ | tsort`
265268
endif
266269
$(RANLIB) $@
270+
endif #haslibarule
267271

268272
ifeq ($(enable_shared), yes)
269273

0 commit comments

Comments
 (0)