Add CUSTOM_CC variable for Makefile.custom. Thanks Kurt Lidl.

This commit is contained in:
Bryan Henderson 1996-12-09 01:16:51 +00:00
parent 8cedf57eb1
commit 6cfb12e0cf

View File

@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.76 1996/12/04 03:05:45 bryanh Exp $ # $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.77 1996/12/09 01:16:51 bryanh Exp $
# #
# NOTES # NOTES
# Essentially all Postgres make files include this file and use the # Essentially all Postgres make files include this file and use the
@ -720,14 +720,18 @@ endif
# Common values for COPT are: -g for debuggable binaries, -m486 if you are # Common values for COPT are: -g for debuggable binaries, -m486 if you are
# using a i486 or better. # using a i486 or better.
ifneq ($(CUSTOM_COPT),) ifneq ($(CUSTOM_CC),)
COPT= $(CUSTOM_COPT) CC= $(CUSTOM_CC)
else
ifeq ($(CC), gcc)
COPT= -O2 -Werror
else
COPT= -O
endif endif
ifneq ($(CUSTOM_COPT),)
COPT= $(CUSTOM_COPT)
else
ifeq ($(CC), gcc)
COPT= -O2 -Werror
else
COPT= -O
endif
endif endif