mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-07 01:47:37 +08:00
no evidence that any currently-supported platform needs this, and good reason to think that any platform that did need it couldn't use the static libraries anyway --- libpq, at least, has circular references. Removing the code shuts up tsort warnings about the circular references on some platforms.
31 lines
479 B
Makefile
31 lines
479 B
Makefile
AROPT = cr
|
|
|
|
ifdef ELF_SYSTEM
|
|
export_dynamic = -Wl,-E
|
|
rpath = -Wl,-R'$(rpathdir)'
|
|
endif
|
|
|
|
DLSUFFIX = .so
|
|
|
|
ifeq ($(findstring sparc,$(host_cpu)), sparc)
|
|
CFLAGS_SL = -fPIC -DPIC
|
|
else
|
|
CFLAGS_SL = -fpic -DPIC
|
|
endif
|
|
|
|
|
|
%.so: %.o
|
|
ifdef ELF_SYSTEM
|
|
$(CC) -shared -o $@ $<
|
|
else
|
|
$(LD) $(LDREL) $(LDOUT) $<.obj -x $<
|
|
@echo building shared object $@
|
|
@rm -f $@.pic
|
|
@${AR} cq $@.pic $<.obj
|
|
${RANLIB} $@.pic
|
|
@rm -f $@
|
|
$(LD) -x -Bshareable -Bforcearchive -o $@ $@.pic
|
|
endif
|
|
|
|
sqlmansect = 7
|