Обсуждение: Minor make bug on AIX
============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name : Pete Forman
Your email address : pete.forman@westgeo.com
System Configuration
---------------------
Architecture (example: Intel Pentium) : RS6000 POWER3
Operating System (example: Linux 2.0.26 ELF) : AIX 4.3.2
PostgreSQL version (example: PostgreSQL-7.0): PostgreSQL-7.0.3
Compiler used (example: gcc 2.8.0) : xlc 3.6.6
Please enter a FULL description of your problem:
------------------------------------------------
"gmake" with no arguments fails. postgres.imp is made before objects
that it depends on. "gmake all" works.
Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
gmake
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
Makefile.ports (copied from makefiles/Makefile.aix) is included before
the default target in GNUmakefile is reached. This patch calls that
default target.
--
Pete Forman -./\.- Disclaimer: This post is originated
Western Geophysical -./\.- by myself and does not represent
pete.forman@westgeo.com -./\.- the opinion of Baker Hughes or
http://www.crosswinds.net/~petef -./\.- its divisions.
Вложения
Pete Forman writes: > "gmake" with no arguments fails. postgres.imp is made before objects > that it depends on. "gmake all" works. > Makefile.ports (copied from makefiles/Makefile.aix) is included before > the default target in GNUmakefile is reached. This patch calls that > default target. It would be better to just mention the target 'all:' near the top of Makefile.global. This is fixed in current sources, in case someone pondered applying the patch there, too. -- Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
Oops, backed out. > Pete Forman writes: > > > "gmake" with no arguments fails. postgres.imp is made before objects > > that it depends on. "gmake all" works. > > > Makefile.ports (copied from makefiles/Makefile.aix) is included before > > the default target in GNUmakefile is reached. This patch calls that > > default target. > > It would be better to just mention the target 'all:' near the top of > Makefile.global. > > This is fixed in current sources, in case someone pondered applying the > patch there, too. > > -- > Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/ > > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 *** src/makefiles/Makefile.aix.orig Wed Apr 5 15:47:18 2000 --- src/makefiles/Makefile.aix Mon Nov 6 16:35:38 2000 *************** *** 12,17 **** --- 12,21 ---- MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh + .PHONY: default_aix + + default_aix: all + $(POSTGRES_IMP): @echo Making $@ $(MKLDEXPORT) postgres $(BINDIR) > $@