Skip to content
Snippets Groups Projects
Commit c3291aed authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Fix shared library builds for MacOS X.

parent 9110ef4d
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California # Copyright (c) 1998, Regents of the University of California
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.54 2001/09/22 22:54:32 petere Exp $ # $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.55 2001/10/05 21:15:38 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -113,7 +113,7 @@ endif ...@@ -113,7 +113,7 @@ endif
ifeq ($(PORTNAME), darwin) ifeq ($(PORTNAME), darwin)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
LINK.shared = $(COMPILER) $(CFLAGS_SL) LINK.shared = $(COMPILER) $(DARWIN_NAMESPACE_SPEC) -bundle -undefined suppress
endif endif
ifeq ($(PORTNAME), openbsd) ifeq ($(PORTNAME), openbsd)
......
...@@ -2,9 +2,12 @@ AROPT = cr ...@@ -2,9 +2,12 @@ AROPT = cr
AWK= awk AWK= awk
DLSUFFIX = .so DLSUFFIX = .so
CFLAGS_SL = -bundle -undefined suppress CFLAGS_SL =
ifeq (,$(filter $(host_os), darwin1.0 darwin1.1 darwin1.2))
DARWIN_NAMESPACE_SPEC = -flat_namespace
endif
%.so: %.o %.so: %.o
$(CC) $(CFLAGS) $(CFLAGS_SL) -o $@ $< $(CC) $(DARWIN_NAMESPACE_SPEC) -bundle -undefined suppress -o $@ $<
sqlmansect = 7 sqlmansect = 7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment