mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-21 05:46:59 +08:00
supposing that they should set SHLIB_LINK rather than LDFLAGS_SL. Since these don't go through Makefile.shlib that was a no-op on most platforms. Also regularize the few platform-specific Makefiles that did pay attention to SHLIB_LINK: it seems that the real value of that is to pull in BE_DLLLIBS, so do that instead. Per buildfarm failures on cygwin.
14 lines
311 B
Makefile
14 lines
311 B
Makefile
AROPT = crs
|
|
|
|
DLSUFFIX = .so
|
|
|
|
ifdef PGXS
|
|
BE_DLLLIBS = -bundle_loader $(bindir)/postgres
|
|
else
|
|
BE_DLLLIBS = -bundle_loader $(top_builddir)/src/backend/postgres
|
|
endif
|
|
|
|
# Rule for building a shared library from a single .o file
|
|
%.so: %.o
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -bundle $(BE_DLLLIBS) -o $@ $<
|