Use of PROFILE in Makefiles

Started by Mayuresh Nirhalialmost 19 years ago2 messagesgeneral
Jump to latest
#1Mayuresh Nirhali
Mayuresh.Nirhali@Sun.COM

Hello,

I could not build pg8.2.4 on Solaris x86 because the variable PROFILE
was set in my path to desktop profile script.
Pg makfiles (Makfile.global) appends value of PROFILE if set to CFLAGS.

I was wondering if there is any particular reason for having PROFILE
appended to CFLAGS.
If this setting is platform specific then will it help moving that to
platform specific makefiles ??

Thanks
Mayuresh

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Mayuresh Nirhali (#1)
Re: Use of PROFILE in Makefiles

Mayuresh Nirhali <Mayuresh.Nirhali@Sun.COM> writes:

I was wondering if there is any particular reason for having PROFILE
appended to CFLAGS.

The usual use-case is to build a profilable backend with
make PROFILE=-pg all

regards, tom lane