summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.aix
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-10-28 17:32:22 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-10-28 17:32:22 +0000
commita7de22d8d5bab7c4d98ac33c474ebbad700819c5 (patch)
treece3e2f33e7e65607889ba4c45a987e7e1f3e7b14 /src/makefiles/Makefile.aix
parent1986ca5ce5031b27a0e35ea0ab7d7c2f479e2afc (diff)
downloadpostgresql-a7de22d8d5bab7c4d98ac33c474ebbad700819c5.tar.gz
Clean up AIX build to avoid 'duplicate symbol' warnings, by moving use
of postgres.imp file into BE_DLLLIBS macro. This makes the AIX build work more like the Windows and Darwin builds, which have similar requirements to mention a backend library when linking shared libraries that will be dynamically loaded into the backend.
Diffstat (limited to 'src/makefiles/Makefile.aix')
-rw-r--r--src/makefiles/Makefile.aix9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix
index 99099272eb..3b21a74c92 100644
--- a/src/makefiles/Makefile.aix
+++ b/src/makefiles/Makefile.aix
@@ -21,13 +21,18 @@ IMPSUFF= .imp
POSTGRES_IMP= postgres$(IMPSUFF)
+ifdef PGXS
+BE_DLLLIBS= -Wl,-bI:$(DESTDIR)$(bindir)/postgres/$(POSTGRES_IMP)
+else
+BE_DLLLIBS= -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP)
+endif
+
MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
%$(EXPSUFF): %.o
$(MKLDEXPORT) $*.o > $*$(EXPSUFF)
%$(DLSUFFIX): %.o %$(EXPSUFF)
- @echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
- $(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(SHLIB_LINK)
+ $(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bE:$*$(EXPSUFF) $(SHLIB_LINK)
sqlmansect = 7