diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 6860d3df05c8323a479d59168fcaa9cbfe74d29d..b743ac688ce8dd2cc70694bfdc7fe0d6d8d6bc4b 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.27 1997/10/30 04:46:39 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.28 1997/12/17 04:03:30 scrappy Exp $
 #
 # NOTES
 #    Essentially all Postgres make files include this file and use the 
@@ -286,4 +286,6 @@ ifdef PROFILE
 endif
 
 # Globally pass PORTNAME
-CFLAGS+= -D$(PORTNAME)
+ifdef PORTNAME
+  CFLAGS+= -D$(PORTNAME)
+endif