Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc3291ae

Browse files
committed
Fix shared library builds for MacOS X.
1 parent9110ef4 commitc3291ae

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎src/Makefile.shlib

Lines changed: 2 additions & 2 deletions
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

Lines changed: 5 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp