summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.darwin
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-27 19:35:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-27 19:35:32 +0000
commitcd75f94dafd43358305811b7576ad75d889097e3 (patch)
tree692b4512b76df4d73bdea0a4464c59caa87197aa /src/makefiles/Makefile.darwin
parente9ff025345b53967a8e2143142509a85b10ef621 (diff)
downloadpostgresql-cd75f94dafd43358305811b7576ad75d889097e3.tar.gz
Adjust Darwin build to use the default 'two level namespace' linking
method. Fix a number of places where shared libraries were linked without mentioning all the libraries they depend on; the Darwin and AIX ports are known to require this, and it doesn't seem to hurt any other supported platforms. (Hence, remove code in pl/tcl makefile that tried to avoid mentioning other libs if not needed.)
Diffstat (limited to 'src/makefiles/Makefile.darwin')
-rw-r--r--src/makefiles/Makefile.darwin8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/makefiles/Makefile.darwin b/src/makefiles/Makefile.darwin
index 3d58055b9b..d872c57eab 100644
--- a/src/makefiles/Makefile.darwin
+++ b/src/makefiles/Makefile.darwin
@@ -3,11 +3,11 @@ AWK= awk
DLSUFFIX = .so
CFLAGS_SL =
-ifeq (,$(filter $(host_os), darwin1.0 darwin1.1 darwin1.2))
-DARWIN_NAMESPACE_SPEC = -flat_namespace
-endif
+BE_DLLLIBS= -bundle_loader $(top_builddir)/src/backend/postgres
+# Rule for building shared libs (currently used only for regression test
+# shlib ... should go away, since this is not really enough knowledge)
%.so: %.o
- $(CC) $(DARWIN_NAMESPACE_SPEC) -bundle -undefined suppress -o $@ $<
+ $(CC) -bundle -o $@ $< $(BE_DLLLIBS)
sqlmansect = 7