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

Commit c3291ae

Browse files
committed
Fix shared library builds for MacOS X.
1 parent 9110ef4 commit c3291ae

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Makefile.shlib

+2-2
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.54 2001/09/22 22:54:32 petere Exp $
9+
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.55 2001/10/05 21:15:38 petere Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -113,7 +113,7 @@ endif
113113

114114
ifeq ($(PORTNAME), darwin)
115115
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
116-
LINK.shared = $(COMPILER) $(CFLAGS_SL)
116+
LINK.shared = $(COMPILER) $(DARWIN_NAMESPACE_SPEC) -bundle -undefined suppress
117117
endif
118118

119119
ifeq ($(PORTNAME), openbsd)

src/makefiles/Makefile.darwin

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ AROPT = cr
22
AWK= awk
33

44
DLSUFFIX = .so
5-
CFLAGS_SL = -bundle -undefined suppress
5+
CFLAGS_SL =
6+
ifeq (,$(filter $(host_os), darwin1.0 darwin1.1 darwin1.2))
7+
DARWIN_NAMESPACE_SPEC = -flat_namespace
8+
endif
69

710
%.so: %.o
8-
$(CC) $(CFLAGS) $(CFLAGS_SL) -o $@ $<
11+
$(CC) $(DARWIN_NAMESPACE_SPEC) -bundle -undefined suppress -o $@ $<
912

1013
sqlmansect = 7

0 commit comments

Comments
 (0)