mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	Decoupled ASSERT and DEBUG options.
This commit is contained in:
		| @@ -1,4 +1,3 @@ | |||||||
| X=$(shell sleep 4) |  | ||||||
| #---------------------------------------------------------------------------- | #---------------------------------------------------------------------------- | ||||||
| # | # | ||||||
| # Makefile.global-- | # Makefile.global-- | ||||||
| @@ -8,7 +7,7 @@ X=$(shell sleep 4) | |||||||
| # | # | ||||||
| # | # | ||||||
| # IDENTIFICATION | # IDENTIFICATION | ||||||
| #    $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.46 1996/11/01 02:21:15 momjian Exp $ | #    $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.47 1996/11/01 02:32:16 momjian Exp $ | ||||||
| # | # | ||||||
| # NOTES | # NOTES | ||||||
| #    This is seen by any Makefiles that include mk/postgres.mk. To | #    This is seen by any Makefiles that include mk/postgres.mk. To | ||||||
| @@ -144,18 +143,19 @@ OIDNAMELEN = 36 | |||||||
|  |  | ||||||
| #HAVE_Cplusplus= true | #HAVE_Cplusplus= true | ||||||
|  |  | ||||||
| # Comment out CDEBUG to turn off debugging and sanity-checking. | # Set CDEBUG to -O for optimization, or -g for debuggable binaries | ||||||
| # | # | ||||||
| #	XXX on MIPS, use -g3 if you want to compile with -O |  | ||||||
| CDEBUG= -O | CDEBUG= -O | ||||||
|  |  | ||||||
|  | # Commenting out CASSERT will make things go a LOT faster, but you will | ||||||
|  | # also lose a lot of useful error-checking. | ||||||
|  | CASSERT= true | ||||||
|  |  | ||||||
| # Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to | # Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to | ||||||
| # multi-byte types to generate a bus error. | # multi-byte types to generate a bus error. | ||||||
| ENFORCE_ALIGNMENT= true | ENFORCE_ALIGNMENT= true | ||||||
|  |  | ||||||
| # | # Comment out PROFILE to generate a profile version of the binaries | ||||||
| #	XXX define on MIPS if you want to be able to use pixie. |  | ||||||
| #	    note that this disables dynamic loading! |  | ||||||
| #PROFILE= -p -non_shared | #PROFILE= -p -non_shared | ||||||
|  |  | ||||||
| # About the use of readline in psql: | # About the use of readline in psql: | ||||||
| @@ -869,16 +869,15 @@ else | |||||||
|       CFLAGS_OPT= -O |       CFLAGS_OPT= -O | ||||||
|    endif |    endif | ||||||
|    CFLAGS+= $(CFLAGS_OPT) |    CFLAGS+= $(CFLAGS_OPT) | ||||||
| # | endif | ||||||
| # Uncommenting this will make things go a LOT faster, but you will |  | ||||||
| # also lose a lot of useful error-checking. | ifndef CASSERT | ||||||
| # |  | ||||||
|    CFLAGS+= -DNO_ASSERT_CHECKING |    CFLAGS+= -DNO_ASSERT_CHECKING | ||||||
| endif | endif | ||||||
|  |  | ||||||
| ifdef PROFILE | ifdef PROFILE | ||||||
| CFLAGS+= $(PROFILE) |    CFLAGS+= $(PROFILE) | ||||||
| LDFLAGS+= $(PROFILE) |    LDFLAGS+= $(PROFILE) | ||||||
| endif | endif | ||||||
|  |  | ||||||
| # Globally pass PORTNAME | # Globally pass PORTNAME | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user