mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Please apply this patch to current, to fix a problem with runcheck,
that installs into a different path than is configured. With this applied both postmaster and the shared libs are location independent for AIX 4.2 and up. Thanks Andreas
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
# Copyright (c) 1998, Regents of the University of California
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.33 2000/11/08 20:18:49 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.34 2000/11/09 04:17:53 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -278,8 +278,8 @@ else # PORTNAME == aix
|
||||
|
||||
# AIX case
|
||||
$(shlib): lib$(NAME).a
|
||||
$(MKLDEXPORT) lib$(NAME).a $(libdir) > lib$(NAME)$(EXPSUFF)
|
||||
$(LD) -H512 -bM:SRE -bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK)
|
||||
$(MKLDEXPORT) lib$(NAME).a > lib$(NAME)$(EXPSUFF)
|
||||
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:lib$(NAME)$(EXPSUFF) -o $@ $< $(LDFLAGS) $(SHLIB_LINK)
|
||||
|
||||
endif # PORTNAME == aix
|
||||
|
||||
|
@ -26,12 +26,20 @@ MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
|
||||
|
||||
$(POSTGRES_IMP):
|
||||
@echo Making $@
|
||||
ifeq ($(host_os), aix3.2.5)
|
||||
$(MKLDEXPORT) postgres $(bindir) > $@
|
||||
else
|
||||
ifeq ($(host_os), aix4.1)
|
||||
$(MKLDEXPORT) postgres $(bindir) > $@
|
||||
else
|
||||
$(MKLDEXPORT) postgres . > $@
|
||||
endif
|
||||
endif
|
||||
$(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS)
|
||||
|
||||
%$(EXPSUFF): %.o
|
||||
$(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
|
||||
$(MKLDEXPORT) $*.o > $*$(EXPSUFF)
|
||||
|
||||
%$(DLSUFFIX): %.o %$(EXPSUFF)
|
||||
@echo Making shared library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
|
||||
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(libdir)/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL) -lc
|
||||
@echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
|
||||
$(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LDFLAGS_SL)
|
||||
|
Reference in New Issue
Block a user