[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile mode in emacs!!

From: Nazir
Subject: Re: Compile mode in emacs!!
Date: Wed, 28 Mar 2007 10:40:02 +0530

Thanks for your reply Peter.
The path in the shell is already set to the required compiler. I need to run a set of make files.
I do not want to change the "CC" in the make files.
But , when I say which gcc in the Mx- compile:
It says "/usr/bin/gcc"
I want to use, say "/tools/gnu/gcc". (THe shell from which emacs is laucnhed points to this gcc! )
Can I configure the emacs to pick the required compiler?
Thanks again,

On 3/27/07, Peter Dyballa <address@hidden> wrote:

Am 27.03.2007 um 10:20 schrieb elxsian:

> When I try to use the compile mode in emacs, it picks up the
> default gcc
> (/usr/bin/gcc). I need it to pick the gcc in a different location.
> How do I
> do that?

Set path or PATH in the shell from which you launch GNU Emacs or in
your login shell accordingly. Or set an environment variable CC that
points to the compiler you want to use. Makefile can also set which
compiler will be used ...

And finally you can correct what M-x compile RET does by inserting in
the read-area (mini-buffer), just an example:

       time nice +17 env USE_XCB=NO PATH=/Users/pete/Quellen/X11R7.1/util/
bin/bin CFLAGS="-v -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -fno-
common" CPPFLAGS="-v -no-cpp-precomp -I/usr/include/openssl -I/sw/
include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/
include/freetype2 -I/sw/include/libpng12 -I/sw/include -I/usr/local/
include" LDFLAGS="-dead_strip -bind_at_load -L/sw/lib/freetype219/lib
-L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/
lib" ACLOCAL="aclocal -I /usr/local/share/aclocal -I /sw/share/
aclocal" PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig:/sw/lib/
util/modular/ -m /Users/pete/Quellen/X11R7.1/Mesa-6.5.2 -D /
usr/X11R7 -n

You see: not even make needs to used to compile some software ...



Remember: use logout to logout.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]