Re: Changing Compilers and Flags

Date view Thread view Subject view Author view

From: Damon Chaplin (damon@karuna.freeserve.co.uk)
Date: Wed Aug 18 1999 - 04:48:20 EDT


Richard wrote:
>
> In a Glade 0.5.1 generated project directory, where do I change the default
> compiler before I run autogen.sh? What about the compiler options (eg. -O6 -mcpu ...)?
> I would prefer not to have to change each Makefile before running make. I tried
> setting an environmental variable (export CFLAGS =-O6) first, but it doesn't seem to have
> any affect.

My guess is to delete config.cache, set CFLAGS to whatever you want (make sure its
exported), then run ./autogen.sh

I always have CFLAGS set to -g, so all my projects are compiled with debugging info.

> How do I change the compiler that is used when Glade is compiled from source?

>From the autoconf info pages:

 - Macro: AC_PROG_CC
     Determine a C compiler to use. If `CC' is not already set in the
     environment, check for `gcc', and use `cc' if that's not found.
     Set output variable `CC' to the name of the compiler found.

So you set the CC environment variable to the name of your compiler before
running configure.

Damon

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to majordomo@ncis.pn.org
with the line "unsubscribe glade-devel" in the body of the message.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 19:21:59 EDT