[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,
Nazir
On 3/27/07, Peter Dyballa <Peter_Dyballa@web.de> 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/
modular:/usr/local/bin:/sw/lib/freetype219/bin:/sw/lib/odcctools/bin:/
sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/gwTeX/
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/
fontconfig2/lib/pkgconfig:/usr/X11R7/lib/pkgconfig:/sw/lib/pkgconfig:/
sw/lib/system-openssl/lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/
pkgconfig:/usr/local/lib/pkgconfig:/usr/local/clamXav/lib/pkgconfig
util/modular/build1.sh -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 ...
--
Greetings
Pete
Remember: use logout to logout.
- Compile mode in emacs!!, elxsian, 2007/03/27
- Compile mode in emacs!!, elxsian, 2007/03/27
- Re: Compile mode in emacs!!, Peter Dyballa, 2007/03/27
- Re: Compile mode in emacs!!,
Nazir <=
- Re: Compile mode in emacs!!, Peter Dyballa, 2007/03/28
- Re: Compile mode in emacs!!, Nazir , 2007/03/28
- Re: Compile mode in emacs!!, Peter Dyballa, 2007/03/28
- Message not available
- Re: Compile mode in emacs!!, Peter Dyballa, 2007/03/28
- Message not available
- Re: Compile mode in emacs!!, Peter Dyballa, 2007/03/28
Re: Compile mode in emacs!!, Ken Goldman, 2007/03/28
Re: Compile mode in emacs!!, Wilfred Zegwaard (privé), 2007/03/28