Thread: Use of PROFILE in Makefiles

Use of PROFILE in Makefiles

From
Mayuresh Nirhali
Date:
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


Re: Use of PROFILE in Makefiles

From
Tom Lane
Date:
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