mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
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.)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user