[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: configure problems on solaris x86 and What are LDFLAGS and CPPFLAGS?



Note that "-I" include paths only need to be set in CPPFLAGS, not in CFLAGS
or anywhere else.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Matthew Hardin

> In your environment, set CC=gcc and then export it. The commands look like
> this:
>
> CC=gcc
> export CC
>
> Then re-run configure.
>
> CFLAGS, CPPFLAGS, and LDFLAGS don't always need to be set by you. In
> building OpenLDAP, CFLAGS and CPPFLAGS are most often used to tell the
> compiler where to look for the include files for the support
> packages (i.e.,
> Kerberos). LDFLAGS is used to tell the compiler where the libraries for the
> supporting packages are located. Say you installed all of the packages in
> /usr/local. You would set the compiler flags to the following values:
>
> CFLAGS=-I/usr/local/include
> CPPFLAGS=-I/usr/local/include
> LDFLAGS=-L/usr/local/lib
> export CFLAGS CPPFLAGS LDFLAGS