[Top][All Lists]

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

Re: Compile mode in emacs!!

From: Peter Dyballa
Subject: Re: Compile mode in emacs!!
Date: Tue, 27 Mar 2007 14:10:34 +0200

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/ -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]