diff options
Diffstat (limited to 'src/makefiles/Makefile.aix')
| -rw-r--r-- | src/makefiles/Makefile.aix | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/makefiles/Makefile.aix b/src/makefiles/Makefile.aix index 0044a8f3ca..bb0c2fd58b 100644 --- a/src/makefiles/Makefile.aix +++ b/src/makefiles/Makefile.aix @@ -7,12 +7,12 @@ MK_NO_LORDER= true AROPT = crs DLSUFFIX = .so -ifneq ($(GCC), yes) ifeq ($(host_os), aix3.2.5) - LDFLAGS_SL = -e _nostart -else - LDFLAGS_SL = -bnoentry +ifneq ($(GCC), yes) + LDFLAGS_SL = -e _nostart -H512 -bM:SRE endif +else + LDFLAGS_SL = -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE endif @@ -23,24 +23,11 @@ POSTGRES_IMP= postgres$(IMPSUFF) MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh -$(POSTGRES_IMP): - @echo Making $@ -ifeq ($(host_os), aix3.2.5) - $(MKLDEXPORT) postgres $(bindir) > $@ -else -ifneq (,$(findstring aix4.1, $(host_os))) - $(MKLDEXPORT) postgres $(bindir) > $@ -else - $(MKLDEXPORT) postgres . > $@ -endif -endif - $(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS) - %$(EXPSUFF): %.o $(MKLDEXPORT) $*.o > $*$(EXPSUFF) %$(DLSUFFIX): %.o %$(EXPSUFF) @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) $(LIBS) $(LDFLAGS_SL) + $(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) $(LIBS) sqlmansect = 7 |
