MK_NO_LORDER=true
AROPT = crs

ifdef ELF_SYSTEM
export_dynamic = -Wl,-E
endif

DLSUFFIX = .so
CFLAGS_SL = -fpic -DPIC

%.so: %.o
ifdef PGXS
	ln -fs $(DESTDIR)$(bindir)/postgres _APP_
else
	ln -fs $(top_builddir)/src/backend/postgres _APP_
endif
	$(CC) -nostart -Xlinker -soname=$@ -o $@ _APP_ $<

sqlmansect = 7
