1 # MAKE_EXPORTS is required for svr4 loaders that want a file of
2 # symbol names to tell them what to export/import.
8 # -blibpath must contain ALL directories where we should look for libraries
9 libpath := $(shell echo $(subst -L,:,$(filter -L/%,$(LDFLAGS))) | sed -e's/ //g'):/usr/lib:/lib
11 ifeq ($(host_os), aix3.2.5)
12 rpath = -L'$(rpathdir)'
14 rpath = -Wl,-blibpath:'$(rpathdir)$(libpath)'
18 ifeq ($(host_os), aix3.2.5)
20 LDFLAGS_SL += -e _nostart -H512 -bM:SRE
23 LDFLAGS_SL += -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE
26 # env var name to use in place of LD_LIBRARY_PATH
27 ld_library_path_var = LIBPATH
30 POSTGRES_IMP= postgres.imp
33 BE_DLLLIBS= -Wl,-bI:$(pkglibdir)/$(POSTGRES_IMP)
35 BE_DLLLIBS= -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP)
38 MKLDEXPORT_DIR=src/backend/port/aix
39 MKLDEXPORT=$(top_srcdir)/$(MKLDEXPORT_DIR)/mkldexport.sh
44 # Rule for building a shared library from a single .o file
45 %$(DLSUFFIX): %.o %.exp
46 $(CC) $(CFLAGS) $*.o $(LDFLAGS) $(LDFLAGS_SL) -o $@ -Wl,-bE:$*.exp $(BE_DLLLIBS)