bbc26c93814ce3ca896bb95bcc887042cb16446c
angie
  Wed Aug 17 16:25:17 2011 -0700
If environment variable CFLAGS is set, don't override it in common.mk. Now we can compile and link for gprof using CFLAGS=-pg.
diff --git src/inc/common.mk src/inc/common.mk
index 08ed959..43083e8 100644
--- src/inc/common.mk
+++ src/inc/common.mk
@@ -1,21 +1,23 @@
 CC=gcc
 # to build on sundance: CC=gcc -mcpu=v9 -m64
 ifeq (${COPT},)
     COPT=-O -g
 endif
+ifeq (${CFLAGS},)
 CFLAGS=
+endif
 HG_DEFS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_${MACHTYPE}
 HG_INC=-I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc
 
 #global external libraries 
 L=
 
 # pthreads is required
 L+=-pthread
 
 # autodetect if openssl is installed
 ifeq (${SSLDIR},)
   SSLDIR = /usr/include/openssl
 endif
 ifeq (${USE_SSL},)
   ifneq ($(wildcard ${SSLDIR}),)