OSDN Git Service

Remove redundant DEF_PGPORT handling
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 27 Jun 2011 12:40:55 +0000 (15:40 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 27 Jun 2011 12:40:55 +0000 (15:40 +0300)
DEF_PGPORT already comes in from pg_config.h, so we don't need to pass
it in again with a -D option.  Apparently a leftover from the shell
script conversion.

src/bin/pg_ctl/Makefile

index 00fc682..6c1b266 100644 (file)
@@ -16,7 +16,7 @@ subdir = src/bin/pg_ctl
 top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
-override CPPFLAGS := -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)
+override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
 
 OBJS=  pg_ctl.o $(WIN32RES)
 
@@ -36,7 +36,3 @@ uninstall:
 
 clean distclean maintainer-clean:
        rm -f pg_ctl$(X) $(OBJS)
-
-
-# ensure that changes in DEF_PGPORT propagate into object file
-pg_ctl.o: pg_ctl.c $(top_builddir)/src/Makefile.global