Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 58ad65e

Browse files
committed
Apply ranlib(1) after installing a static (.a) library on Darwin.
Per past complaints --- verified to still be a problem on OS X 10.2.6.
1 parent 776ec78 commit 58ad65e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Makefile.shlib

+5-1
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-
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.69 2003/09/14 13:33:08 momjian Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.70 2003/09/20 21:26:20 tgl Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -304,6 +304,10 @@ install-lib: install-lib-static install-lib-shared
304304

305305
install-lib-static: lib$(NAME).a
306306
$(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
307+
ifeq ($(PORTNAME), darwin)
308+
cd $(DESTDIR)$(libdir) && \
309+
ranlib lib$(NAME).a
310+
endif
307311

308312
ifeq ($(enable_shared), yes)
309313
install-lib-shared: $(shlib)

0 commit comments

Comments
 (0)