aix: Remove checks for very old OS versions
authorAndres Freund <andres@anarazel.de>
Sun, 7 Aug 2022 16:36:01 +0000 (09:36 -0700)
committerAndres Freund <andres@anarazel.de>
Sun, 7 Aug 2022 16:36:01 +0000 (09:36 -0700)
Reviewed-By: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/20220807012914.ydz73yte6j3coulo@awork3.anarazel.de

src/backend/Makefile
src/makefiles/Makefile.aix
src/template/aix

index 953c80db5ab0b48355dce69f462a02b44e5dcd08..7262861b12a52d43cb20a58b5046da15e4aab8bb 100644 (file)
@@ -101,15 +101,7 @@ postgres: $(POSTGRES_IMP)
 
 $(POSTGRES_IMP): $(OBJS)
    $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(call expand_subsys,$^)
-ifeq ($(host_os), aix3.2.5)
    $(MKLDEXPORT) SUBSYS.o $(bindir)/postgres > $@
-else
-ifneq (,$(findstring aix4.1, $(host_os)))
-   $(MKLDEXPORT) SUBSYS.o $(bindir)/postgres > $@
-else
-   $(MKLDEXPORT) SUBSYS.o . > $@
-endif
-endif
    @rm -f SUBSYS.o
 
 endif # aix
index 84f26b49b8703202a2dbd53e6d58282aeabad331..4cf2cc52d45ee9a17701fdc9d641eddf6bfcfb93 100644 (file)
@@ -8,19 +8,9 @@ AROPT = crs
 # -blibpath must contain ALL directories where we should look for libraries
 libpath := $(shell echo $(subst -L,:,$(filter -L/%,$(LDFLAGS))) | sed -e's/ //g'):/usr/lib:/lib
 
-ifeq ($(host_os), aix3.2.5)
-   rpath = -L'$(rpathdir)'
-else
-   rpath = -Wl,-blibpath:'$(rpathdir)$(libpath)'
-endif
+rpath = -Wl,-blibpath:'$(rpathdir)$(libpath)'
 
-ifeq ($(host_os), aix3.2.5)
-ifneq ($(GCC), yes)
-   LDFLAGS_SL += -e _nostart -H512 -bM:SRE
-endif
-else
-   LDFLAGS_SL += -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE
-endif
+LDFLAGS_SL += -Wl,-bnoentry -Wl,-H512 -Wl,-bM:SRE
 
 # env var name to use in place of LD_LIBRARY_PATH
 ld_library_path_var = LIBPATH
index cec240d27b9a2bc6a18e9c53f20ed70c23625c1a..47fa8990a7cd83d7d903f108f0bf9e8e9b5fcfb3 100644 (file)
@@ -6,9 +6,6 @@
 # non-default CFLAGS setting.
 if test "$GCC" != yes ; then
   case $host_os in
-    aix3.2.5 | aix4.1*)
-      CFLAGS="-O -qmaxmem=16384"
-      ;;
     *)
       CFLAGS="-O2 -qmaxmem=16384"
       ;;